So I did the first part of my assisgnment like this
*
**
***
****
*****
******
*******
********
*********
using this code
public class starForTest
{
public static void main(String [] args)
{
for (int i=1; i<=9; i++)
{
System.out.println();
for (int j=9; j>=i; j--)
{
System.out.print(" ");
}
for (int k=1; k<=i; k++)
{
System.out.print("*");
}
}
System.out.println();
}
}
but now i need to flip it to make it look like this
*****
****
***
**
*
but i dont't know how.