Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: .readline

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default .readline

    whats the pupose of " .readline" and where we suppose to use it? please help me,im still amateur in this subject


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,108
    Thanks
    48
    Thanked 2,153 Times in 2,126 Posts

    Default Re: .readline

    Where did you see that: .readline? It is not valid java as you have coded it.
    There is a method with a similar name in the Java SE. To see where it is used, look in the Java SE API doc at this link: Java Platform SE 7
    At the top of the page is a link: Index that goes to a page where you can look up all the methods used in Java SE. Click on the R to get the pages of methods that start with R and then scroll down to readline
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Member vigneshwaran's Avatar
    Join Date
    Nov 2012
    Location
    Chennai, TamilNadu
    Posts
    35
    My Mood
    Cheerful
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default Re: .readline

    To say in simple, it is the Method to read the Input Using the InputStream Class Object
    For example,
    DataInputStream dis=new DataInputStream(System.in);
    dis.readLine(args[0]);

    here args[0] is the first input through Console.
    every method begins with small letter. If it seems to be continuous 2 word, then the second word must be Capital Letter. Here in readLine(), "L"ine.. not readLine()
    Thank you

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,108
    Thanks
    48
    Thanked 2,153 Times in 2,126 Posts

    Default Re: .readline

    @vigneshwaran
    Did you compile and execute the code you posted?

    Try to test your code before posting it. The posted code has MANY errors.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Re: Problem with BufferedReader : readLine() cut the line
    By caveden in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: August 10th, 2012, 08:46 AM
  2. Problem with BufferedReader : readLine() cut the line
    By mfgagne73 in forum File I/O & Other I/O Streams
    Replies: 1
    Last Post: May 3rd, 2012, 10:18 AM
  3. JAVA Programming ReadLine() method
    By AsySyah in forum Java Theory & Questions
    Replies: 1
    Last Post: June 8th, 2011, 09:55 AM
  4. file.txt and ReadLine issues
    By chansey123 in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: March 20th, 2010, 03:46 PM
  5. (.readLine() method) of BufferedReader class
    By chronoz13 in forum File I/O & Other I/O Streams
    Replies: 7
    Last Post: October 13th, 2009, 06:59 PM