This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Reply 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: 431

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: 8712
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


Eliminate fossil fuel subsidies. (If you're not on the edge, you're taking up too much room.)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: K&B book Console example Scjp6
 
Similar Threads
NullPointerException when using java.io.Console
Program for Console
System.console() Problem
Console class NullPointerException problem
K&B book Console example Scjp6