这个用While语句怎么写啊
public class HelloWorld {
public static void main(String[] args) {
System.out.println("打印直角三角形");
int i,j;
i=1;
while (i<=3) {
j=1;
while (j<=i) {
System.out.print("*");
j++;
}
System.out.print("\n");
i++;
}
}
}