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”);
}
}