switch (putIn) { case 0: 这个'0‘怎么和现实交汇啊,不明白怎么去做
许枫 2011-12-06 04:53:00 System.out.println("请输入查询参数:");
putIn = Integer.parseInt(bReader.readLine());
System.out.println("开始查询,请稍候……");
switch (putIn) {
case 0: //查找指定的信息
HttpMethod method = new GetMethod(currURL);
client.executeMethod(method);
........
break;
case 1: //查找洗衣粉
........
case 2: //查找香皂
........
其中,以0,1,2代表的商品在下面要显示出来,问你怎么编写一个程序
请你输出你购买的商品:香皂
明白了没,在上面你输入的不是2而是香皂,请
问一下怎么写一个程序输出<香皂>后打出它的相应信息,有点不会