My code receives the error:
Droid.java:12: error: missing return statement
}
^
1 error
I have been looking for the error and how to fix it for so long, have tried many things that dont seem to work, what am i missing?:
public class Droid{
//instances
int batteryLevel;
String name;
//Constructor
public Droid(String droidName){
name = droidName;
batteryLevel = 100;
}
public String introduce(){
System.out.println("Hi, my name is " + name);
}
public static void main(Stringargs){
Droid Codey = new Droid(“Codey”);
System.out.println(Codey);
}
}