• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Programming question from Java novice

cr0ssfire

Senior member
I'm currently taking a class in Java, and so far I've been doing very well. The professor usually explains how to do things pretty well, and people do well as a result. But for one of the problems he assigned us over the weekend, he gave us absolutely no explanation on how to do it. This is the problem:

"Design and implement an application that determines and prints the number of odd, even, and zero digits in an integer value read from the keyboard."

I know there has to be something very basic that I'm missing here, but I in my very limited Java knowledge just can't think of how to get it to individually consider the digits. Don't write the program for me or anything, but how would I go about writing this?
 
Back
Top