i am using sun's java sdk.
the problem is that a program will not compile while using terminalio package. i don't think there is anything wrong with the code, but i am confused about the error message i get.
Is there something wrong with the "K" ?Code:C:\j2sdk1.4.2_01\school>type Momentum.java /** Assignment #11 Momentum * Version 1 * 9/26/03 * AP Computer Science * * This program will determine the momentum of an object * The user must input the mass and velocity first */ import TerminalIO.KeyoardReader; //import class from package public class Momentum { public static void main (String [] args) { KeyboardReader reader = new KeyboardReader(); //make new object int mass, velocity, momentum; //declare variables System.out.print("Enter kilograms mass: "); System.out.print("Enter meters per second velocity: "); mass = reader.readdouble(); velocity = reader.readdouble(); momentum = mass * velocity; System.out.print("The equivalent in the momentum is: \"momentum\" "); reader.pause(); } } C:\j2sdk1.4.2_01\school>javac Momentum.java Momentum.java:12: cannot resolve symbol symbol : class KeyoardReader location: package TerminalIO import TerminalIO.KeyoardReader; //import class from package ^ Momentum.java:18: cannot resolve symbol symbol : class KeyboardReader location: class Momentum KeyboardReader reader = new KeyboardReader(); //make new object ^ Momentum.java:18: cannot resolve symbol symbol : class KeyboardReader location: class Momentum KeyboardReader reader = new KeyboardReader(); //make new object ^ 3 errors C:\j2sdk1.4.2_01\school>
thank you



LinkBack URL
About LinkBacks


