Results 1 to 7 of 7

Thread: EasyIn

  1. #1
    Shyamz1 is offline Member
    Join Date
    Oct 2010
    Posts
    56
    Rep Power
    0

    Default EasyIn

    Hey guys, how are you? I'm having a little difficulty with this program from the Java in two semesters book which i am trying to implement.

    It's a simple program, but i am having trouble on how to set up EasyIn:

    Java Code:
    public class Hello5
    {
      public static void main(String [] args)
      {
        System.out.println("Hello World");
        EasyIn.pause("Press enter to quit");
      }
    }
    The book doesn't show how to use EasyIn. I have researched and know that you have to do something like:

    import EasyIn.*; or sometthing but it still doesn't work.


    Any help guys :(

    Kind regards

    Shyam

  2. #2
    AcousticBruce is offline Senior Member
    Join Date
    Dec 2010
    Location
    Indiana
    Posts
    202
    Rep Power
    5

    Default

    You do have to
    import EasyIn.*;

    I imagine your project has EasyIn.java? Move that to the same directory as Hello5 class.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    EasyIn is not part of standard Java but is likely a class that your instructor has given you to allow for "easy" user input. It doesn't have to be in the same directory as your current program, but rather it's class needs to be in the classpath when you compile and run your code. I recommend that you check your class notes as they should tell you how to do this, and failing that, contact your instructor.

  4. #4
    Shyamz1 is offline Member
    Join Date
    Oct 2010
    Posts
    56
    Rep Power
    0

    Default EasyIn

    This is a new piece of code that i haven't come across before...

    Can anyone show me how the full code would look, if it's not too much trouble.

    Then it will be easier for me to see..

    Kind regards

    Shyam

  5. #5
    al_Marshy_1981 is offline Senior Member
    Join Date
    Feb 2010
    Location
    Waterford, Ireland
    Posts
    748
    Rep Power
    5

    Default

    Do you have to write EasyIn then?

  6. #6
    Shyamz1 is offline Member
    Join Date
    Oct 2010
    Posts
    56
    Rep Power
    0

    Default EasyIn

    Yeah EasyIn is a class. I want to see how the full program works, can anyone post. That would be great, i would then see how it works. Because it doesn't say in the book.

    Kind regards

    Shyam

  7. #7
    al_Marshy_1981 is offline Senior Member
    Join Date
    Feb 2010
    Location
    Waterford, Ireland
    Posts
    748
    Rep Power
    5

    Default

    If you have to write EasyIn please show your attempt, just trying to get you more help, attempts are like goldust around here, we don't care how ridiculous!! just try and you will have swarms helping you ok?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •