Here's how you could print the jagged array created in the following thread to the console:

http://www.c-sharpcorner.com/Forums/Thread/249315/how-to-use-jagged-array-in-java.aspx

for(int i = 0; i < 4; i++)
{
   for(int j = 0; j < i + 1; j++)
   {
       System.out.print(jagged[i][j] + " ");
   }
   System.out.println();
}

The output is:

0
1 2
3 4 5
6 7 8 9