Clean code != short code always. The way you did it is still clean, however is not beginner friendly like I was trying to be. I wouldn't expect a beginner to understand java 8 features such as streams and lambdas.
The company I work for has a comment philosophy that I am for 100%. If the code is not understandable without comments, it is most likely written poorly/incorrectly. Variable and function names should be crystal clear on what they are or what they do. Even if the variable or function name is...
I am talking about when we decide not to gameshare anymore. If I bought games on my original xbox(which is set as my friend's home xbox), and then we switch our home consoles back to the originals, who keeps the game license?
No offense, but I don't think that you have the knowledge to make an operational operating system. What kind of data structure are you using for your memory management? How are you handling process scheduling? What about concurrency?
Lets say my profile is on my xbox, but I have my home xbox as my friends, and his home xbox is set to mine. If I buy a digital copy of a game on my xbox (ie my original xbox, my profile, set to his home xbox) and then we switch back from sharing games, will I get to keep what I purchased or does...
I don't mean jumping into the deepend by starting with swing. In my opinion swing is a PoS. I mean just trying to code and start breaking ****. That's how you learn. Java is one of the easiest languages because it is verbose and has a lot of safety nets, but C still has just as many job...
Well the company I work for does Java and SQL, but I also know C, C++, and Python. But this doesn't sound very interesting to me. It looks great though, keep up the good work.
For gaming news, it really would be better if you just did a website. If you really did want to make a desktop application, Java is good for portability across systems. C, however, can be used if performance was an issue, but for your purposes its not.
Java is not necessarily the most sought...
Clearly your friends did not understand the underlying principles of object oriented programming. If they did, then going from C++ to Java should be a breeze. Its a little tougher going from Java to C++, but like I said, Java takes care of a lot of things a beginner doesn't need to worry about...
I would start off with Java, and then move to C/C++. Java does a lot things for you that you wouldn't need to worry as a beginner. But then the further along you can go, C++ allows you to have so much more control. It is the go to language for most console/pc games. You can do most Android games...
The simplicity of the application allows the entire thing to be written in the main method. This would not be the case in a real world app. Nonetheless, I'll also write mine in the main method. If you would like me to show you how to do it otherwise, just ask.
Also, there are multiple ways to...
you could do what Zingy said, or use a struct. I would honestly go with his suggestion, but I am just opening you up to new ideas.
struct myData{
int hundreds;
int tens;
int units;
};