Question: / / Declares an array that holds different boat types import java.util.Scanner; public class DebugNine 3 { public static void main ( String [ ]

// Declares an array that holds different boat types import java.util.Scanner; public class DebugNine3{ public static void main(String[] args){ DebugBoat[] ref = new DebugBoat[3]; Scanner input = new Scanner(System.in); int x; int option; DebugRowboat rowboat; DebugOceanLiner liner; for (x =0; x < ref.length; ++x){ System.out.println("Do you want to add a 1- rowboat or");

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!