This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Mock Exam Errata and the fly likes K&B book  Console example Scjp6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "K&B book  Console example Scjp6" Watch "K&B book  Console example Scjp6" New topic
Author

K&B book Console example Scjp6

sumit kothalikar
Ranch Hand

Joined: Apr 15, 2010
Posts: 91

K & B book page no 457-458




Here at line # 4variable name is used but it is not declared when we declare it(name variable) as String pw returns the password we have entered
Is there any correction in the above code


Thanks & Regards
Sumit Kothalikar
Arjun Srivastava
Ranch Hand

Joined: Jun 23, 2010
Posts: 432

yeah i think it's a mistake ,they forgot to declare name.

also they forgot to reply here.


SCJP 6 | FB : Java Certifications-Help. | India Against Corruption
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8805
    
    5
Hi Guys,

We appreciate you posting your doubts and possible erratas here at JavaRanch.

In general we ask you to first post on the appropriate forum, like SCJP. Then, once everyone has agreed that there's an error, you can add the error to the error list.

We never committed to responding to threads in this forum


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
 
Don't get me started about those stupid light bulbs.
 
subject: K&B book Console example Scjp6
 
Similar Threads
K&B book Console example Scjp6
Program for Console
System.console() Problem
NullPointerException when using java.io.Console
Console class NullPointerException problem