By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,538 Members | 1,130 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,538 IT Pros & Developers. It's quick & easy.

Java help

P: 1
Ok, I'm trying to read in data from a text file.

In input.txt, I have the following line
11 14 9 3 2 10 15

How can I read in those 7 numbers and place them in arrays?

Because some of the numbers are two digits,
char user = (char)(; does not work.

Jan 27 '07 #1
Share this Question
Share on Google+
2 Replies

Expert 2.5K+
P: 3,652
What method of input are you using?

What version of Java are you programming in?
Jan 27 '07 #2

Expert 100+
P: 1,510
have a look at nextInt() in the Scanner class
Jan 28 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.