public class Curiosity {
public void toString()//error because of this specific method name
{
System.out.println("method is successfully implemented");
}
}
必要に応じて、同じ名前の「toString()」のメソッドを使用するにはどうすればよいですか?
toString に void 戻り値の型を使用したい場合、java はそれを許可しますか?