답안지가 없어서요 ;;;

오류 찾는건데요



public class Mymath {

public int getRandom() {

return (int)Math.random();

}

public double getRandom() {

return Math.random();

}

}

위 문장 중복메소드로는 못하는지 알고 싶습니다. int getRandom 을 int getRandom1로 하면 되긴하는거 같은데 중복은 왜 안되는지 알고싶어요


그리고

public class Myclass {

private String getName() {

return "Myclass";

}

public static String getClassName() {

return getName() ;

}

}

여기서 뭐가 잘못되었는지 정확히 모르겠습니다.