I need to produce a triangle as shown:

```
    1
   22
  333
 4444
55555

```

and my code is:

```
int i, j;
for(i = 1; i <= 5; i++)
{
    for(j = 1; j <= i; j++)  
    {          
        System.out.print(i); 
    }      
    System.out.print("\n");        
}

```

Producing a triangle the opposite way

```
1
22
333
4444
55555

```

What do i need to do to my code to make it face the right way?