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 doesn't work

  1. #1
    Junior Member
    Join Date
    Oct 2014
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ReadLine doesn't work

    int arabe = Integer.readLine(args[0]);
    String romain= "";


    The compilator says that it can't find symbol. The arrow is under the "".""

    It worked before.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 832 Times in 772 Posts
    Blog Entries
    5

    Default Re: ReadLine doesn't work

    In the future, please post the full error and code. Presuming 'Integer' refers to the Integer class and not a poorly named variable, where in the API of Integer is that method defined?

  3. #3
    Junior Member
    Join Date
    Oct 2014
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: ReadLine doesn't work

    Or how can I read a Input from args without import class?

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 697 Times in 679 Posts

    Default Re: ReadLine doesn't work

    It worked before.
    Then do it as you did before. Having a library of tested code that you have confidence in is a valuable tool.

    Research the Integer.parseInteger() method.

Similar Threads

  1. My calculator doesn't work right....
    By ryry163 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: May 10th, 2014, 05:12 PM
  2. Replies: 1
    Last Post: January 23rd, 2013, 06:29 AM
  3. Why doesn't this work!
    By Alex-Green in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 20th, 2012, 03:25 AM
  4. Why doesn't this work?
    By mailman in forum What's Wrong With My Code?
    Replies: 6
    Last Post: January 9th, 2012, 10:19 PM
  5. pathSeparatorChar doesn't work
    By ordonezc78 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: March 19th, 2011, 12:25 PM

Tags for this Thread