1、打印下图:
public static void main(String[] args) {
for (int i = 1; i <= 5; i++){
for (int j = 1; j <= 9; j++){
if (j == 5 && i == 1){
System.out.print("*");
}else if (i == 2 && (j == 4 || j == 6)){
System<