Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

can someone fix this code? it wont compile //import library import java

can someone fix this code? it wont compile //import library import java.util.Random;

//class decleration

class TestGuitar {

//mainof the program

public static void main(String args[])

{

//constructor decleration with no arguement

Guitar guitarOne = new Guitar();

//constructor decleration with arguement

Guitar guitartwo = new Guitar(7, 30.2, “Fender”, “Black”);

Guitar guitarThree = new Guitar(8, 33, “Titan”, “Brown”);

//call the values for the each guitar

printGuitar(guitarOne);

printGuitar(guitartwo);

printGuitar(guitarThree);

}

 

public static void printGuitar(Guitar guitar)

{

//message on the screen

System.out.println(“\n\ntoString() : ” + guitar.toString());

//message on the screen

System.out.println(“getNumStrings() : ” + guitar.getNumStrings());

//messages on the screen

System.out.println(“getGuitarLength() : ” +guitar.getGuitarLength());

//message on the screen

System.out.println(“getGuitarColor() : ” +guitar.getGuitarColor());

//message on the screen

System.out.print(“playGuitar() : ” + guitar.playGuitar() + “\n\n”);

}

}

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"