I want help in writing a digit display(3 digit number) in java (using sub strings).
Example 524 if user inputs then computer has to display
5
2
4.
javap
0
Newbie Poster
Recommended Answers
Jump to Postis 524 n int or a Strng ?
If it is a StringString str = "524"; for(int i = 0; i < str.length(); ++i) System.out.printl(str.charAt(i));
Jump to PostI want help in writing a digit display(3 digit number) in java (using sub strings).
Example 524 if user inputs then computer has to display
5
2
4.import java.util.*; public class InputSub { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Number Input: …
Jump to PostGentlemen, or ladies, as appropriate, let's please try to be a little subtle here. Here's a New Year's resolution for you: in the coming year, I will help people find a solution, not give them their solution.
Now, javap - what have you tried so far, and what has …
All 9 Replies
pbl
22
Junior Poster
JKP()
0
Light Poster
javap
0
Newbie Poster
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
jon.kiparsky
326
Posting Virtuoso
JKP()
0
Light Poster
jon.kiparsky
326
Posting Virtuoso
javap
0
Newbie Poster
JKP()
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.