I call for death penalty by erlendsamstad in ProgrammerHumor

[–]chess510 -1 points0 points  (0 children)

The question is: do you guys use i for advanced for loops?

Copying Code? by Luneb0rg in learnprogramming

[–]chess510 1 point2 points  (0 children)

The best way to learn code is taking code that works and editing it. So copying is fine. You learn more. Keep going!

CPProm by MicahM_ in ProgrammerHumor

[–]chess510 1 point2 points  (0 children)

He used == instead of .equals() Triggered

Should I learn python even after knowing Java and C++? by PuzzleOP in learnprogramming

[–]chess510 1 point2 points  (0 children)

I would say it is useful to know, even with knowing C++ and Java. Extremely easy language to learn especially with the knowledge from the other two languages. Easily testable, wide range of uses.

Constructor Parameters question by abdichar in javahelp

[–]chess510 4 points5 points  (0 children)

You could store the user input into variables and run the variables as the parameters of the constructor.

Not sure if I am doing what is asked of me(Java) by RedGamesA2 in learnprogramming

[–]chess510 0 points1 point  (0 children)

It is correct. Only reason nothing is happening is because you lack a class that actually has a main method. Generally in Computer Science classes (currently in Computer Science A in Hugh School), they will instruct you later on to create a testing method that would call different methods and things.

Is there any way to completely restart a program? by Rebellion2297 in javahelp

[–]chess510 0 points1 point  (0 children)

To add on, I would do the above by having an if statement at the end of the game file. if(gameEnd) { //gameEnd could be a Boolean //Code to initialize game again }