so I've been trying to figure this out but reached no success. So, I am suppose to create a program that prints out following triangle.

```
**********
 *********
  ******** 
   ******* 
    ******
     *****
      **** 
       ***  
        **  
         * 

```

And here's my current code.

```
public class PatternC 
{
    public static void main(String[] args)
    {
        int len = 1;
        int k;

        System.out.println("**********");
        for (int row = 9; row > len; row--)
        {

            for(int i=0; i<row; i++)
                System.out.print("*");
            System.out.println("");
        }
        for (int end = 0; end<1; end++)
        {
            System.out.format("%10s", "*");
        }
   }

}

```

But the program is printing out this!

```
**********
*********
********
*******
******
*****
****
***
**
         *

```

I did everything correctly, except I just need to align the middle stars to initially start from right to left. I've already tried print format, but it doesn't work.