this code wont work, can someone fix it?
this code wont work, can someone fix it? //import library import java.util.Random;
//class decleration
public 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());
//message on the screen
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"
![](https://sp-ao.shortpixel.ai/client/to_webp,q_glossy,ret_img,w_320,h_80/http://academicheroes.com/wp-content/uploads/2018/09/order_now.png)