java题 scanner

[复制链接]
查看11 | 回复3 | 2012-6-4 13:58:55 | 显示全部楼层 |阅读模式
main(String[] args){AccoutNum anum=new AccountNum();Scanner sc = new Scanner(System.in);while (true) {try {System.out.println("请输入要执行的操作:1-取款,2-存款,0-退出");int choice = sc.nextInt();if (choice == 1) {System.out.println("请输入取款金额:");double m = sc.nextDouble();anum.takeMoney(m);...
回复

使用道具 举报

千问 | 2012-6-4 13:58:55 | 显示全部楼层
Scanner sc=new Scanner(System.in);int number=sc.nextInt();System.out.println(number);...
回复

使用道具 举报

千问 | 2012-6-4 13:58:55 | 显示全部楼层
问题不明,能不能把你的原题发出来,你到底想做个什么样的东西...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行