public class MyClass
{
public static void main(String args[])
{

int row=10;
for(int i=1;i<=row;i++)
{
for(int j=1;j<=i;j++)
{
System.out.print("* ");
}
System.out.println(" ");
}
}
}

Output

Half Pyramid using numbers

public class MyClass
{
public static void main(String args[])
{

int row=10;
for(int i=1;i<=row;i++)
{
for(int j=1;j<=i;j++)
{
System.out.print(j+" ");
}
System.out.println(" ");
}
}
}

output

Knowledge is everything.Check out my app at https://play.google.com/store/apps/details?id=com.vibe.britevibe