日期:2014-05-20 浏览次数:20885 次

System.out.print("请选择,输入数字:");
		Scanner sc=new Scanner(System.in);
		int number=sc.nextInt();
		while (true) {
			if (Math.abs(number) < 4) {
				break;
			}
			System.out.print("输入错误,请重新输入数字:");
			number=sc.nextInt();
		}
		System.out.println("执行购物结算");