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: Difference between input.next and findInLine(".")charat(0)

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Difference between input.next and findInLine(".")charat(0)

    what is the difference between
     input.next()
    and
     findInLine(".")charat(0);


  2. #2
    Junior Member
    Join Date
    Jul 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Differences in input?

    Hard to tell. You haven't given us any information about the classes/methods you posted. So: Can you give a little bit larger code snippet?

  3. #3
    Junior Member
    Join Date
    Jun 2009
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Differences in input?

    i mean is there any difference in the input it takes? or is it that both will capture any keyboard input

  4. #4
    Junior Member
    Join Date
    Jul 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Differences in input?

    Well, i have no idea because I don't know in which context this code is placed. What kind of object is input? And if you know that, is there any javadoc that can tell us more about how it works?

Similar Threads

  1. Replies: 1
    Last Post: November 2nd, 2012, 02:21 PM
  2. Differences Between Java and C,C++
    By sriraj.kundan in forum Java Theory & Questions
    Replies: 2
    Last Post: June 20th, 2009, 01:11 PM
  3. How to check that console input should be integer only?
    By Konnor in forum File I/O & Other I/O Streams
    Replies: 3
    Last Post: February 2nd, 2009, 04:37 AM
  4. Different operation on Array
    By jempot in forum Collections and Generics
    Replies: 4
    Last Post: January 27th, 2009, 05:07 AM
  5. Program to mask input
    By sah in forum Java Theory & Questions
    Replies: 1
    Last Post: January 26th, 2009, 05:43 PM