Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am running a javaTest file with arrays and arraylist, the errors that pop up say certain names can't be used as variables: public static
I am running a javaTest file with arrays and arraylist, the errors that pop up say certain names can't be used as variables: public static void mainString args
Ship cruiseShip new CruiseShipname: "Magic", year: afloat: true, passengers: zone: "Caribbean";
Ship cruiseShip new CruiseShipname: "Titanic", year: afloat: false, passengers: zone: "Atlantic Ocean";
Ship cargoShip new CargoShipname: El Faro", year: afloat: false, cargo: "containers", capacity: ;
CargoShip cargoShip new CargoShipname: "Seawise Giant", year: afloat: false, cargo: "crude oil", capacity: ;
WarShip warShip new WarShipname: "USS Nimitz", year: afloat: true, type: "super carrier", nation: "United States Navy";
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started