So, my teacher gave me this assignment to write a program to enter a four digit number Andries each digit of the number in a separate line. For example, if a user inputs 1234, the output should be:
1
2
3
4
I'm stuck. Please help ASAP. We have learnt Buffered Reader, but not the scanner method.

Recommended Answers

All 5 Replies

DaniWeb Member Rules (which you agreed to when you signed up) include:
"Do provide evidence of having done some work yourself if posting questions from school or work assignments"
http://www.daniweb.com/community/rules

Post what you have done so far and someone will help you from there.

It's funny to see ASAP coming from someone apart from one's stingy boss :D

my hourly rate is $150 with a minimum of 40 hours, payable in advance.
After payment I'll get on it ASAP.

Ok. You need to think about this logically.

You must first read the users input.
Then split the string of numbers into individul digits - which are then stored in some sort of collection.
You then need to iterate through the collection and print out each element.

We don't get the grades for writing the code for you! But use those instructions as a guide for your research and learning.

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.