第十六天

public class E {

  public static void main (String args[ ]) {

    char c = '\0';

    for(int i = 1;i<=4;i++) {

      switch(i) {

         case 1: c = 'J';

            Sysytem.out.print(c);

         case 2: c = 'e';

             System.out.print(c);

             break;

         case 3: c = 'p';

              System.out.print(c);

         default: System.out.print("好");

      }

    }

  }

}

猜你喜欢

转载自blog.csdn.net/sutiesenn/article/details/80257422