Computing.Net > Forums > Programming > Question about JDK 1.4.2

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Question about JDK 1.4.2

Reply to Message Icon

Name: TM
Date: September 17, 2005 at 11:45:25 Pacific
OS: Windows XP Pro SP2
CPU/Ram: 3.0 GHz/1.0 Gb of RAM
Comment:

I attend University of Toronto. My computer fundamental class professor assigned us a programming homework involving JDK 1.4.2. It supposed to ask the user to enter a number in metres and then it will convert it to yards, feet and inches. I'm supposed to compile a given file ,from the university's folder, called "In.java". So when I program my code, I can get the user's input using the "In.class" file. i.e. char firstinitial = In.getChar();. I'm using NetBeans IDE 4.1 and it does not recognize the "In" in "In.getChar();". Is there any way to get NetBeans to recognize this or should I use Notepad to write the program? Thank you.

P4 - 3.2Ghz/800Mhz, 1M
1.0 Gb of RAM, WinXP pro SP2
40 gb HDD
ASUS P5GD1-VM-UAY0Z, 420 W PSU
BFG Geforce 6600 GT OC PCI-E
Onboard Audio
HP CD R/RW
LG DVD burner



Sponsored Link
Ads by Google

Response Number 1
Name: gimmpy225
Date: September 17, 2005 at 20:46:05 Pacific
Reply:

assuming In is a class, wouldnt you need to make an object of the class or atleast import it into the project?

GIMPS


0

Response Number 2
Name: jlyon
Date: September 18, 2005 at 09:10:08 Pacific
Reply:

Or set the classpath to be able to locate the In.java file...?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Help: Questions about Hos... Changing font for whole a...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Question about JDK 1.4.2

java 1.4.2 www.computing.net/answers/programming/java-142/7048.html

Accessing Windows Registry - Java www.computing.net/answers/programming/accessing-windows-registry-java/7818.html

encryp/decryp in jdk 1.2 www.computing.net/answers/programming/encrypdecryp-in-jdk-12-/10303.html