求教:学过comp1005 or 1405的大侠

黄昏

新手上路
注册
2004-11-29
消息
310
荣誉分数
16
声望点数
0
问题:are you a student?
type:no --》 提出问题:are you a senior?
如果type:yes --》 没有问题提出

请大侠帮忙 写段这个code。


小弟跪谢
 
学了……挂了……帮不了你,帮你顶
 
public static void main(String args[]) throws IOException{
String choose="";
System.out.println("are you a student?\n");
choose = Keyboard.getString();
while (choose.equals("no")){
System.out.println("are you a senior? \n");
choose = Keyboard.getString();
}
}
 
非常感谢龙卷风的code, 已经搞定,上交了。perfect。。。
 
这么简单的code你都要请教别人,学到后面你就完全Lost了. drop吧,我都drop过一次
 
后退
顶部