star pyramid
class Main {
public static void main(String[] args) {
int row = 5;
for(int i = 0; i < row; i++){
for(int j = row; j > i; j--){
System.out.print(" ");
}
for(int j = 1; j <= (i*2)+1; j++){
System.out.print("*");
}
System.out.println();
}
}
}INFO