How do I use or gain access to the oblong class, bankAccount class and the easyScanner class in Jcreator?I am using Java in two semesters by charatan & Kans the second edition and am on chapter 6 classes and objects i cant seem to get any of these to compile...can anyone please help its really urgent?
public class oblongTester
public static void main(Stringargs)
Scanner sc=new Scanner(System.in);
/*declare two variables to hold the length and height
*of the oblong as input by the uaer*/
double oblongLength, oblongHeight;
//declare a reference to an oblong object
//now get the values fromn the user
System.out.print("Please enter the length of your oblong");
System.out.print("Please enter the height of your oblong");
//create a new oblong object
/*use the variousmethods of the oblong class to display
*the length, height, area and perimeter of the oblong*/
System.out.println("Oblong length is "+ myOblong.getLength());
System.out.println("oblong height is "+myOblong.getHeight());
System.out.println("oblong area is "+myOblong.calculateArea());
System.out.println("oblong perimeter is "
errors: cannot find symbol class oblong line 12
class oblong is public should be declared in a file named oblong.java line 1
cannot access oblong line 19
The bit about class is public etc. should be self‑explanatory.
The bit about cannot find symbol oblong may mean that the word oblong is misspelt. It might need a capital O.
You will find a link about error messages on the mindprod site.
What is on the CD? Are they .java files or .class files? What sort of folder structure do you have on the CD? If they are .java files, do they have package names? Hint: The package name has to be the first non‑comment line in the file.
I tried to use some indentation to make it clearer but i guess it doesnt show that. but anyways java sourcefiles inside that are folders Chapter05-Chapter24. Chapter06 has 3 files on it Oblong, easyScanner and bankaccount. These are the classes that am trying to get to compile.