This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

K&B book Console example Scjp6

 
sumit kothalikar
Ranch Hand
Posts: 91
Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

K&B book page no.457-458




Here at line # 4 variable name is used but it is not declared when
we declare it(name var) as String pw returns the password we have entered
Is there any correction in the above code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic