纪念小伙伴们在惠普奋斗的青春!Come on !
来源:互联网 发布:淘宝网.棉拖鞋 妈妈型 编辑:程序博客网 时间:2024/06/01 10:39
import java.util.*;
/**
* @author: HPK8_CPH
* @CSDN博客: http://blog.csdn.net/hpk8_cph
* @time: 2015.09.10
* @project: 苦逼的午夜,我饿了!
*/
public class Hungry {
public static void main(String[] args) {
System.out.println("************************");
System.out.println("请依次输入0到99999999之间的整数");
System.out.println("************************");
System.out.print("请输入:");
Scanner input=new Scanner(System.in);
int num;
while(true){
num=input.nextInt();
switch(num){
case 0:System.out.println("给我带鸡翅!");break;
case 1:System.out.println("给我带可乐!");break;
case 2:System.out.println("最好再来个汉堡!");break;
case 3:System.out.println("再来个烤地瓜吧!");break;
default:System.out.println("鸡翅、汉堡、可乐和烤地瓜再来一份!");break;
}
}
/**
* @author: HPK8_CPH
* @CSDN博客: http://blog.csdn.net/hpk8_cph
* @time: 2015.09.10
* @project: 苦逼的午夜,我饿了!
*/
public class Hungry {
public static void main(String[] args) {
System.out.println("************************");
System.out.println("请依次输入0到99999999之间的整数");
System.out.println("************************");
System.out.print("请输入:");
Scanner input=new Scanner(System.in);
int num;
while(true){
num=input.nextInt();
switch(num){
case 0:System.out.println("给我带鸡翅!");break;
case 1:System.out.println("给我带可乐!");break;
case 2:System.out.println("最好再来个汉堡!");break;
case 3:System.out.println("再来个烤地瓜吧!");break;
default:System.out.println("鸡翅、汉堡、可乐和烤地瓜再来一份!");break;
}
}
}
}
0 0
- 纪念小伙伴们在惠普奋斗的青春!Come on !
- 纪念,我的小伙伴。[2013-11-13]
- 纪念逝去的青春
- 写给同样在路上的Android小伙伴们
- 纪念一下我的青春
- 《我的2012》----纪念青春
- 纪念永不散场的青春
- 纪念我逝去的青春
- 纪念青春
- 我和我的小伙伴们
- 红黑树和他的小伙伴们
- 我和我的小伙伴们
- 我和我的小伙伴们
- 奋斗的青春,无悔的时光
- 顺流逆流,我的青春我奋斗!
- 奋斗的青春最美丽-就业经验交流会
- 纪念那些死去的青春细胞
- 最炫IT风霸气来袭!-回想那在传智播客青春奋斗的岁月!
- iOS 如何dismiss所有modalViewController
- phpmailer 实现邮件发送功能方法
- iOS基础知识:Objective-C 之 通知(Notification)
- 晚读->写在考试前
- MySql中IFNULL、CONCAT和INSERT INTO...SELECT FROM多表复制的介绍
- 纪念小伙伴们在惠普奋斗的青春!Come on !
- springmvc的model传值到jsp,el的表达式引用无论如何也不成功
- Axure 交互设计 (2)
- iOS 如何获取scrollView状态是否正在滚动
- c文件操作
- 黑马程序员——java基础知识篇——>IO流
- linq
- C#陷阱之构造函数调用虚方法
- IOS开发指南学习——REST Web Service