IntelliJ Java IDE
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
JavaRanch » Java Forums » Professional 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: 87

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
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: 8439
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.)
 
 
subject: K&B book Console example Scjp6
 
Threads others viewed
Program for Console
K&B book Console example Scjp6
Console class NullPointerException problem
NullPointerException when using java.io.Console
System.console() Problem
MyEclipse, The Clear Choice