循环判断语法示例:
--Shuffle1.java
package com.test.java;
public class Shuffle1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int x = 3;
while (x > 0) {
if (x > 2) {
System.out.print("a");
}
x = x - 1;
System.out.print("-");
if (x == 2) {
System.out.print("b c");
}
x = x - 1;
System.out.print("-");
if (x == 1) {
System.out.print("d");
x = x - 1;
}
}
}
}