• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Ranch Hand
Posts: 225
Spring Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
There will be plenty of time to discuss your objections when and if you return. The cargo is this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic