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:是不是这样???

Posted by frkstyc at 2007-08-24 22:56:08 on Problem 1537
In Reply To:是不是这样??? Posted by:ecjtubaowp at 2007-08-24 22:48:36
不能用==来判……这个相当于判指针相等……

> while(sc.hasNext())
>  {
>   
>  String big=new String(sc.next().trim());
>   String str;
>   //System.out.println(big);
>  if(big=="*")break;
> }
> 可我读到*还没有跳出来呀

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