So I was trying to make some simple columns in Java (Yes, I am very new to this), and I just can't get it to 'stand' properly...
My code is the following:
int[][] grid = {
{3, 5, 2434},
{2, 4},
{1, 2, 3, 4}
};
combined with:
for(int row=0; row<grid.length; row++){
for (int col=0; col < grid[row].length; col++) {
System.out.println(grid[row][col] + "\t");
}
System.out.println();
}
Which gives me this result:
3
5
2434
2
4
1
2
3
4
Which leads me to my confusion.. Shoudn't "\t" just move them like "tab", instead of giving them a new line?
I appreciate the answers.