Scanner scanner = new Scanner(System.in);
System.out.print("Masukkan nilai : ");
int input = scanner.nextInt();
int kolom = input -1;
for(int i=1;i<input;i++){
for(int j=input;j>i;j--){
System.out.print("*");
}
System.out.println();
}
so i think i need get the first row and last column
how to do that


ifstatements will do the trick.