Getting an Error while Compiling the Java program
I am getting an Error while compiling the following file written in Java.
1. class car_5_1_1
{
String licensePlate; // e.g. "96 C 1"
double speed; // in mph
double maxSpeed; // in mph
}
2. class Example_5_1_1
{
public static void main(String args[])
{
Car_5_1_1 c;
c = new Car_5_1_1() ;
}
}
While compiling the car file, I am not getting any error. But when I try to compile the Example file I am getting the 2 errors. I tried a lot but cannot resolve my problem. Please help me by telling where I went wrong.!!
Dimension 1100 (FMY032J) mini-tower
2.53ghz Intel Pentium 4
80 gig nfts HDD
512 RAM
Main circuit board: Dell 0CF458
BIOS: Dell A00
Display: Intel(R) 82865G Graphics Controller [Display adaptor]
Multimedia: Sound MAX Integrated Digital Audio
Windows XP Home SP2
Bookmarks