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: [beginner] What's wrong with my code?

  1. #1
    Junior Member
    Join Date
    Aug 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default [beginner] What's wrong with my code?

    class starter {
            public static void main(String args[])
            {
    		String adj;
    		String noun;
    		EasyReader console = new EasyReader();
    		System.out.println("Enter the first adjective");
    		adj = console.readLine();
    		System.out.println("Now enter a noun");
    		noun = console.readLine();
    		System.out.println("The " + adj + "cat ate a " + noun);
    }	
    }

    The error says that it cannot find the symbol for easyreader but i dont know what that means
    Last edited by jps; August 30th, 2013 at 12:17 AM. Reason: code tags


  2. #2
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: [beginner] What's wrong with my code?

    Welcome to the forum
    Please use code tags when posting code. Help can be found here.
    Copy paste the error message to the forum exactly as it appears
    EasyReader appears to be a type defined outside the posted class and probably needs to be imported

  3. #3
    Junior Member
    Join Date
    Aug 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: [beginner] What's wrong with my code?

    ahh sorry for that mistake, AND thank you I forgot i needed that file in my folder

  4. #4
    Super Moderator jps's Avatar
    Join Date
    Jul 2012
    Posts
    2,642
    My Mood
    Daring
    Thanks
    90
    Thanked 263 Times in 232 Posts

    Default Re: [beginner] What's wrong with my code?

    No worries. You are welcome. Hopefully it is working now.

Similar Threads

  1. I dont see anything wrong with this(simple beginner code)
    By Olympaphibian89 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: September 26th, 2012, 03:11 PM
  2. [SOLVED] What's wrong with my code?? (Total beginner)
    By TheProf in forum What's Wrong With My Code?
    Replies: 10
    Last Post: January 6th, 2012, 02:41 PM
  3. Please held. What is wrong with my code? I am a beginner ;)
    By mvonb17 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: December 30th, 2011, 05:33 PM
  4. Replies: 3
    Last Post: October 19th, 2011, 11:55 PM
  5. Very beginner - What's wrong in my applet declaration?
    By rforte in forum What's Wrong With My Code?
    Replies: 5
    Last Post: April 30th, 2010, 04:54 AM