public class Test12{
public static void main(String[]args){
java.util.Scanner input = new java.util.Scanner(System.in);
String name;
do{
System.out.println("請(qǐng)輸入姓名");
name = input.next();
if (!name.equals("quit")){
System.out.println("您的姓名是" + name);
}
}while(!name.equals("quit"));
}
}