Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Why in.readline() deprecated in java6.0.. What is the feature superseded it.. (https://www.askmehelpdesk.com/showthread.php?t=485173)

  • Jul 3, 2010, 09:00 PM
    chandujalli
    Why in.readline() deprecated in java6.0.. What is the feature superseded it..
    Just a quick question.
  • Jul 3, 2010, 09:11 PM
    chandujalli
    Java
    How shall I update my subject..
    Am in searching for job on java platform...
    Do hel me.
  • Jul 13, 2010, 06:08 PM
    yesbeckjs
    If you are using the DataInputStream Class, it is suggested to use the method: BufferedReader.readLine();

    Example:

    Old way
    Code:

    DataInputStream d = new DataInputStream(in);

    New way
    Code:

    BufferedReader d = new BufferedReader(new InputStreamReader(in));

    You can read more about it here: http://download.oracle.com/docs/cd/E...putStream.html

  • All times are GMT -7. The time now is 01:49 AM.