public class Test04 {
public static void main(String[] args) {
char[] arr= {'a','b','c','d','e','f','g'};
int len = arr.length;
for (int i=0;i<len;i++) {
for (int j=i ; j<len-1 ;j++) {
System.out.print(" ");
}
for(int j=0 ;j< 2*i+1; j++) {
System.out.print(arr[i]);
}
System.out.println();
}
}
}