0

Hey all,
I need some help with an application which needs to read data into an array using methods and then write it back out into a 5x5 table

so i would read int 25 digits say: 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4


and it would print
0 1 2 3 4
5 6 7 8 9
0 1 2 3 4
5 6 7 8 9
0 1 2 3 4

3
Contributors
5
Replies
6
Views
9 Years
Discussion Span
Last Post by stultuske
0

Hello, beforehand, sorry for my english...
You can read your data into String, the split it by " ". And you'll have an array of symbols. To print it, you can use 2 cycles: (1st - from 0 to arrayLength; 2nd- from 0 to (columCount and arrayLength if you can have strings with not equal length))

0

@Antenka: he doesn't want the logic behind the solution, he wants the code to be handed to him (and if possible, a nice degree to go with it)

Votes + Comments
For bringing me down to earth ... :)
0

stultuske: I'm optimist

we all started like that ;)
but you'll see tons of questions like this where the thread-starter doesn't even bother to write the main-method himself.. :)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.