Results 1 to 7 of 7
Thread: EasyIn
- 12-18-2010, 08:21 PM #1
Member
- Join Date
- Oct 2010
- Posts
- 56
- Rep Power
- 0
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:
The book doesn't show how to use EasyIn. I have researched and know that you have to do something like:Java Code:public class Hello5 { public static void main(String [] args) { System.out.println("Hello World"); EasyIn.pause("Press enter to quit"); } }
import EasyIn.*; or sometthing but it still doesn't work.
Any help guys :(
Kind regards
Shyam
- 12-18-2010, 08:54 PM #2
Senior Member
- Join Date
- Dec 2010
- Location
- Indiana
- Posts
- 202
- Rep Power
- 3
You do have to
import EasyIn.*;
I imagine your project has EasyIn.java? Move that to the same directory as Hello5 class.
-
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.
- 12-19-2010, 12:22 AM #4
Member
- Join Date
- Oct 2010
- Posts
- 56
- Rep Power
- 0
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
- 12-19-2010, 02:15 AM #5
Senior Member
- Join Date
- Feb 2010
- Location
- Waterford, Ireland
- Posts
- 748
- Rep Power
- 4
Do you have to write EasyIn then?
- 12-19-2010, 12:28 PM #6
Member
- Join Date
- Oct 2010
- Posts
- 56
- Rep Power
- 0
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
- 12-25-2010, 01:11 AM #7
Senior Member
- Join Date
- Feb 2010
- Location
- Waterford, Ireland
- Posts
- 748
- Rep Power
- 4


LinkBack URL
About LinkBacks

Bookmarks