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.


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

Results 1 to 2 of 2

Thread: JAVA Programming ReadLine() method

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Thanked 0 Times in 0 Posts

    Default JAVA Programming ReadLine() method

    Tomorrow i've got java programming test...this is one of an example question that my lecturer give which i cant find the answer...

    ASSERTION: Line input from a file can be done with the help of readLine() method
    REASON: readLine() method stops when it encounters a new line character

    can someone help me please with this statement:
    Is it both are true..?

  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Washington, DC
    My Mood
    Thanked 632 Times in 540 Posts

    Default Re: JAVA Programming ReadLine() method

    The best way to test this is to write a little program, then pass it different files and observe the behavior.

    Also, it wouldn't hurt to read through the API: Java Platform SE 6
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Is java a power full programming language? can java do this?
    By Jhovarie in forum Java Theory & Questions
    Replies: 5
    Last Post: March 2nd, 2011, 01:02 PM
  2. Java programming help
    By Cool_tine in forum Java Theory & Questions
    Replies: 1
    Last Post: February 21st, 2011, 10:05 PM
  3. 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
  4. Please help me with this Java programming
    By simply_stunning79 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: January 14th, 2010, 05:42 AM
  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