CarTest - public class Car_Test { public static void...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
public static void main(String[] args){ Car car1, car2, car3, car4; //declares car variables Driverr driver1, driver2, driver3; //declares driver variables //String fName1, fName2, fName3, lName1, lName2, lName3, Maker1, Maker2, Maker3, Maker4, owner1, owner2, owner3; //int age1, age2, age3, license1, license2, license3, year1, year2, year3, year4, vID1, vID2, vID3, vID4; //Double price1, price2, price3, price4; //setting driver 1's information driver1 = new Driverr(); driver1.setfirstName("Mike"); driver1.setlastName("Jones"); driver1.setAge(45); driver1.setLicenseNum(123456789); //setting driver 2's information driver2 = new Driverr(); driver2.setfirstName("Richie"); driver2.setlastName("McRich"); driver2.setAge(17); driver2.setLicenseNum(456789123); //setting driver 3's information driver3 = new Driverr(); driver3.setfirstName("Queen"); driver3.setlastName("S"); driver3.setAge(19); driver3.setLicenseNum(999666999); //setting car1's stuff. car1 = new Car();
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

CarTest - public class Car_Test { public static void...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online