public enum STUFF
{
THING("Ok"), STUFF("Sweet"), PEOPLE("umm"), CAR("Vrrm");
String contents;
STUFF(String x)
{
contents = x;
}
public String getContents()
{
return ??
}
}
期望的結果:
System.out.print(STUFF.CAR.getContents());
//Vrrm
'返回的內容;'? –
啊......我猜這真的很簡單@PrinceJohnWesley – stackoverflow