Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:请问一下用java的话是用什么条件来表示输入结束?请高手们帮帮我这个菜鸟~~~

Posted by zhblue at 2010-04-18 12:45:07 on Problem 1604
In Reply To:请问一下用java的话是用什么条件来表示输入结束?请高手们帮帮我这个菜鸟~~~ Posted by:sinceow at 2010-04-18 11:08:33
> 题里面好像都没给出用来表示输入停止的标志,那我要怎么才能表示我的输入已经结束?

Scanner cin=new Scanner(System.in);
if(cin.hasNext())
     ................................

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator