while(kb.hasNext())
{
array[i] = kb.nextInt();
System.out.print(array[i] + " ");
}
I'm reading a text file containing
1 2 3
2 1 3
3 1 2
1 2 3
2 1 3
3 1 2
I'm trying to print it out the same way it is formatted in the text file but I can only print it out like this.
1 2 3 2 1 3 3 1 2 1 2 3 2 1 3 3 1 2
First time asking a question on here so I apologize if it's not clear or poorly worded.