Home > Default > Get multiple values from Command-Line

Get multiple values from Command-Line

October 11Hits:0
Advertisement
Can any body tell how can I do this�
When I input a number, then I should be able to insert that number of lines (rows). Note that number
of columns is always 4.
I.e.: If I put number 3 in command-line, It should be like this & then exit from the program.
3
apple 10 20 30
orange 60 50 70
grapes 80 120 50
If I put 5, It should be like this,
5
one 54 57 67
two 78 21 54
three 89 22 69
four 78 32 99
five 89 21 11
Note that the user should be able to type these values (one 54 57 67) that is after he press enter
he should go to the next line & able input, Values (two 78 21 54) �like wise...Then after he
completes 5 row, he should exit from the program.
Can any-one help!...
.

Answers

Please stick to your original thread. You're already getting help there.
http://forum.java.sun.com/thread.jspa?threadID=700811

Read other 2 answers

Tags:

Related Articles

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.413 s.