#Java 169 156bytes
Java 169 156bytes
String a="abcdefghijklmnopqrstuvwxyz";
public void alphabetTriangle(){
for(int i=0;++i<27;){
System.out.println(a.substring(0,a)+new StringBuilder(a).reverse().substring(1,-i+1));
}
}
Golfed
String a="abcdefghijklmnopqrstuvwxyz";void l(){for(int i=0;++i<27;){System.out.println(a.substring(0,a)+new StringBuilder(a).reverse().substring(1,-i+1));}}
It is actually same as the batch solution with some shortcuts
Thanks to @Value Ink for saving 15 bytes by shortening the method name.