-
Replied To a Post in Call center software
If you are thinking of setting up an outbound cold calling centre then i sincely wish a horrible death on everyone involved. 10 cold calls a day made my life … -
Replied To a Post in PDF file is not opening after generating bar codes .
maybe you need to flush/close the output stream explicitly? -
Replied To a Post in solving problem
I've always preferred test-at-the-bottom for this pattern - keeps it all more local ... do Get user input Do processing Ask user "continue?" while user says "yes" -
Edited PayPal account [name deted by moderator]
[name deted by moderator] has a paypal account and been using my sunrise debit bank card to make transactions that are not approved by me -
Edited PayPal account [name deted by moderator]
[name deted by moderator] has a paypal account and been using my sunrise debit bank card to make transactions that are not approved by me -
Replied To a Post in What did it take you entirely too long to learn about software testing?
Test early, test often Every requirement document is (a) wrong and (b) incomplete -
Gave Reputation to rproffitt in Server 2016 migration server name & ip
Yes. -
Replied To a Post in Procedural programming C#
If you have already created the game then it's too late to worry about requirements. Normally you document the requirements, then design an app to meet those requirements. Not vice-versa. -
Replied To a Post in The image is not showing up in the terminal window. How can I fix this? Any helpful advice?
Overall you are writing far too much code before you start testing. Just about every part of that code contains errors, so it's never going to give a sensible output, … -
Replied To a Post in The image is not showing up in the terminal window. How can I fix this? Any helpful advice?
Your approach to animation isn't going to work. The loop on line 63 is just going to burn 100% of (one of) your CPU's time. Use a java.util.Timer or a … -
Replied To a Post in The image is not showing up in the terminal window. How can I fix this? Any helpful advice?
That looks like a lot of complex code to do something that should be simple. Why are you using an AWT Canvas in a Swing application? Why not just a … -
Replied To a Post in Scanner not passing control to the keyboard
> Scanner comes with its own set of problems, eg the infamous nextInt/nextLine trap Just like I said. Using two Scanners with closing causes you to lose the newline char … -
Replied To a Post in Scanner not passing control to the keyboard
> at the moment I'm using 2 in fact even though they're duly closed Closing a System.in Scanner is not just useless, it's a problem. System.in buffers input and so … -
Gave Reputation to rproffitt in Scanner not passing control to the keyboard
@JC, if they were declared then I'd expect them to be used on lines 9 and 22 as well. As it stands, only the OP can tell us what's up. -
Replied To a Post in Scanner not passing control to the keyboard
If you call that method twice you wil get problems. By closing then re-opening a new Scanner on the same input stream you lose all control over what is or … -
Replied To a Post in Same variables in a class function
> The scope of a local variable declaration in a block (§14.4) is the rest of the block in which the declaration appears (Java Language Spec 6.3) So the exibited … -
Replied To a Post in How can I convert this code from python into Java
It looks ike there's only a couple of SymPy calls that do anything, so the challenge is simply to replace those two methods. There are a ton of Java libraries … -
Replied To a Post in minify imageview setonmouseclicked code
Hre's another approach that IMHO is much cleaner... use the `id` property that's inherited by every JavaFX node. When creating the controls set their id property to the index i … -
Replied To a Post in minify imageview setonmouseclicked code
> eventhandler is a interface, so I had to implement instead of extends That's right. Sorry about that. I'm still on Swing, so my JavaFX is a bit patchy. I … -
Replied To a Post in minify imageview setonmouseclicked code
You could use an ordinary inner class instead of the anonymous event handlers, and pass `i` to the constructor. Something like class MyHandler extends Eventhandler { int i; MyHandler(int i) … -
Replied To a Post in Random Facts
> France? For some reason I thought you were in the US. No, I'm English, from London. Although my work meant spending a lot of time in the States there's … -
Replied To a Post in Random Facts
Here in France the pharmacist is actively encouraged to dispense a generic when the prescription is for a brand name drug, unless the doctor explicitly states "not substiutable" on the … -
Replied To a Post in Please help. There is a Syntax error in line 17 and I don´t know why. :c
You can only get to line 17 if `number` is 1, so having a switch on `number` at line 17 is pointless. Did you mean `number2` ? The switch on … -
Replied To a Post in Othello Checking valid Moves
Start your own Topic... explain how far you have got and what's blocking you. Show any relevant code, or at least say what language you are using. Help us to … -
Replied To a Post in I have a problem with the last text.It dosen't appere
Nowhere in the posted code do you call ReadTxt. That;s probably why it's never executed, which is why you don't see its output. See how much better this site works … -
Replied To a Post in JavaScript Object Comparison
Set is just an interface somewhere in the middle of the Collection hierarchy that includes various kinds of List and unordered Sets. and iteration/streaming operations thereon. Similarly the Map interface … -
Replied To a Post in JavaScript Object Comparison
> Which is it where, Objects.equals or the equals of the first object or ==? == is referential equality. Two references refer to exactly the same object. This is different … -
Gave Reputation to DGPickett in JavaScript Object Comparison
== is a shallow comparison, like shallow copy, true only if the refrences are identical, not the objects. http://adripofjavascript.com/blog/drips/object-equality-in-javascript.html JAVA and C++ also have this sort of limitation unless you … -
Replied To a Post in JavaScript Object Comparison
> == is a shallow comparison Some spectacular Java nonsense here. The == operator cannot be overloaded and checks for referential identity. If two variables contain the same reference then … -
Replied To a Post in Drawing Graph and writing to .ppm
> only God knows and they are not talking to me at the moment. Presuming that you are using "they" as a gender-neutral pronoun, then shouldn't that be "they is … -
Replied To a Post in print out number in ascending order in c++ WITHOUT USING ARRAY AND FUNCTION
Maha Your rude demand for someone to drop whatever they are doing and do your homework for you is attached to a 10 year old dead topic. so 0/10 for … -
Gave Reputation to Reverend Jim in Filling in 6x6 2D array with nums -25 to 43(can't repeat,must div by 3)
Or you could subtract the random number mod 3. That makes it easier to keep it within the given range. x = new random number in range (-25,43) x = … -
Replied To a Post in Rendering an image
Almost 200 lies of code with exactly one comment: "bad loop" We have import statements inside a class We have zero logging, tracing, debugging info We have at least 3 … -
Replied To a Post in New design! Can you give me some feedback, please?
Where are the women? Or is it a male-hiring-only organisation? -
Replied To a Post in Filling in 6x6 2D array with nums -25 to 43(can't repeat,must div by 3)
Just had a thought... if you get a random number and multiply it by 3 then you have a new random number that's divisible by 3. Can it be that … -
Replied To a Post in Filling in 6x6 2D array with nums -25 to 43(can't repeat,must div by 3)
> I'm not sure where should I put this loop inside the code of my program. It effectively replaces line 12... instead of just getting one random value you keep … -
Gave Reputation to Jawad_9 in Calculator in C++
I want a Calculator on c++ contains sin, cos, factorial, log and division -
Replied To a Post in Filling in 6x6 2D array with nums -25 to 43(can't repeat,must div by 3)
> is it a better wau to modify the program I have already written, or modyfing the code mentioned above? The second code doesn't do what you need, and you … -
Replied To a Post in Filling in 6x6 2D array with nums -25 to 43(can't repeat,must div by 3)
You're going to need an extra loop to keep trying new random numbers until you get one that is divisible by 3 and not present in the numbers you have … -
Replied To a Post in TicTacToe equivalent with a twist using socket programming in Java
You've got a lot of good code in there, but I think you have made it hard on yourself by trying to do it all in one big hit. It's … -
Replied To a Post in TicTacToe equivalent with a twist using socket programming in Java
> I am currently thinking of instead trying to update count on the client side, I don't know which will be good though. In general the more you share the … -
Replied To a Post in TicTacToe equivalent with a twist using socket programming in Java
In the server code I can't see where you uodate `count`. I was expecting a `count++` somewhere. the client code listing seems to be corrupted - main method is missing … -
Replied To a Post in How to convert my python code into Java ? Need Help .
Sure there are people here who will help. You need to explain exactly what help you need! -
Replied To a Post in Array of clients
In general you would use another class to represent the set of all Clients, eg "ClientBase". It would have public methods like `addClient`, `printClients`, `printClientsSorted` etc. Internally it may hold … -
Edited Array of clients
Hello I'm writing a program that reads in data from a file to create an array of clients and stocks. I completed my client class and stock class. I'm stuck … -
Gave Reputation to Santosh_23 in Java question count by any number
The Java code should look like this: import java.util.Scanner; public class MyClass { public static void main(String[] args) { //final int START = 5; final int STOP = 500; int … -
Replied To a Post in Java question count by any number
Santosh: Your code contains exactly the same bug as the original. Didn't you read the whole topic before replying? Maybe *you* should visit a good leaning site (eg Oracle's own … -
Replied To a Post in Trump
Not just Trump. Wasn't it Bush who was in charge when the US started snatching people off the streets of foreign countries and torturing them in sectret camps outside the … -
Replied To a Post in Pretty printing code on mobile
Thanks for the clarification! Christian: noun: a person who lives by rejecting every single point of the teachings of Jesus of Nazareth. -
Replied To a Post in Pretty printing code on mobile
ps Are you really a Reverend? Should I be addressing you as "father"?
The End.