Hi! I'm making a Guess the number game where the user guesses what number the random generator chose.
However, I want to make it so that there are 2 classes. One with the methods and the other where it has the while loop and actually calls upon the methods.
But I'm not too sure on how to go about actually writing it and choosing what methods to write.
Any help would be appreciated!
I have this so far:
Campbell Ritchie wrote:Please also learn about spaces and use of the _(←link) character. Your code without spaces and with _ is very difficult to read.
@natsumi: Also, the use of the '_' prefix in field names marks you out as an "immigrant" from languages like C/C++, Python or Perl, where it has a specific meaning (not necessarily the same either, depending on which language you're coming from, AFAIK).
My advice: Don't use it. It looks 'awkward' to most Java programmers.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
I like tacos! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop