import java.util.Scanner;
public class XunHuan3 {
public static void main(String[] args) {
System.out.println("MyShopping管理系统 > 购物结算");
System.out.println("****************************");
System.out.println("请选择购物的商品编号:");
System.out.println("1.T 恤 \t2.网球鞋 \t3.网球拍");
System.out.println("****************************");
System.out.print("请输入商品编号:");
Scanner scanner = new Scanner(System.in);
int b = scanner.nextInt();
int a = 1;
while (a <= 3) {
if (a == 1) {
System.out.println("T 恤 " + " ¥245.0");
}
if (a == 2) {
System.out.println("网球鞋 " + " ¥570.0");
}
if (a == 3) {
System.out.println("网球拍 " + " ¥320.0");
}
a++;
}
System.out.print("是否继续(y/n):");
String c=scanner.next();
if (c.equals("n")){
System.out.println("程序结束!");
}else {
System.out.println("请输入商品编号:");
}
}
}