Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I want Check stdId&Pwd Using Iteration I can't declar iterator variable outside Loop please help me,

 
RajeshKumar Nayak
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Baseet Ahmed
Ranch Hand
Posts: 225
Java Notepad Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

if(stdId.equalsIgnoreCase(std.getStdid())&& stdPwd.equalsIgnoreCase("nayak"));//give error



Please remove the semicolon(;) at the end of if statement.

Also, next time onwards always give error stack trace for better understanding of problem.


---------
Regards
Ahmed
 
RajeshKumar Nayak
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
give error for std. declaration it error because outside of the loop how i can use this object for test case please
not ; this is mistake for write can someone solve my problem


Thanks Regards
Rajesh kumar Nayak
 
tyte kyat
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you try this,



without --> com.rajesh.

--------------------------
or

without changing anything and if you put the following line

System.out.println("size = "+plist.size());

before calling Iterator it=plist.iterator();

what have you got?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic