> Dear all,

We also can use
BufferedReader in
   = new BufferedReader(new InputStreamReader(System.in));
in.readLine();to read the whole line of the input.

best regards
Xin
>
>
>
> Hello Vasudev.....
>
>
>        Actually it is not an error, its just warning
> Please check the below for the definition of depreciation......
>
>
>            When a function is deprecated, it means that the method was
> once valid, but has now been replaced by a newer method. Deprecated
> methods all produce warnings that let the developer know that she is
> advised to use the newer method.
>
>
> It is just a warning. In fact, your java application should run without
> trouble since most JVMs will support all the deprecated methods from
> Java 1.0x.
>
> However, try to use the recommended newer version of the method.
>
>
>
> Regards
> Arun.S
>
>
>
> -----Original Message-----
> From: java-ee-j2ee-programming-with-passion@googlegroups.com
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Vasu
> Sent: Sunday, September 14, 2008 3:13 PM
> To: Java EE (J2EE) Programming with Passion!
> Subject: [java ee programming] How can we address the issue related
> todeprecated methods
>
>
> Hi !
>
> I'm a newbie in Java programming and created a code having readLine()
> method.  While compiling the code I got following message :
>
> ICanReadApp.java:12: warning: [deprecation] readLine() in
> java.io.DataInputStrea
> m has been deprecated
>   name=keyboardInput.readLine();
>
>
> Can any body help me in finding the method that we can read the inputs
> from keyboard.
>
> Thanks in advance for your help!
> Vasu
>
>
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
>
> The contents of this e-mail and any attachment(s) are confidential and
> intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its
> affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily reflect
> the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure,
> modification, distribution and / or publication of
> this message without the prior written consent of the author of this
> e-mail is strictly prohibited. If you have
> received this email in error please delete it and notify the sender
> immediately. Before opening any mail and
> attachments please check them for viruses and defect.
>
> -----------------------------------------------------------------------------------------------------------------------
>
> >
>



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to