Java Method declaration
Posted
by
user1701604
on Stack Overflow
See other posts from Stack Overflow
or by user1701604
Published on 2012-10-16T22:55:34Z
Indexed on
2012/10/16
23:00 UTC
Read the original article
Hit count: 233
I'm trying to declare a method for my program that takes only a 5 digit integer and for each digit of the integer, reads a value from the program and prints it out. I understand this isn't very clear but im having trouble relaying what I mean. I understand it will be some sort of for loop to read each digit of the integer individually until something reaches 5. Something like the charAt() string method but works for digits.
© Stack Overflow or respective owner