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