Original Post
🔒 Locked
java program
Advertisement
Homework, much?
Look at the javadocs for Integer (google "java class Integer") and pay attention to the parseInt method.
Look at the javadocs for Integer (google "java class Integer") and pay attention to the parseInt method.
For future reference, we aren't allowed to give you homework answers, only hints if you're stuck - jemarcode has done just this.
If you have a legitimate question that might be construed as a homework assignment then by all means explain to us in your first post (or when someone asks) why it isn't. [smile]
If you have a legitimate question that might be construed as a homework assignment then by all means explain to us in your first post (or when someone asks) why it isn't. [smile]
Hint: Use the modulus operator (which is the % sign in Java).
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement