class Math {
public static void main(String args[]){
MyMath a = new MyMath();
long Result = a.add(5L, 6L);
long Result2 = a.sub(5L, 6L);
long Result3 = a.mul(5L, 6L);
double Result4 = a.div(5L, 6L);
System.out.println("Result, Add : "+Result);
System.out.println("Result, Subtract : "+Result2);
System.out.println("Result, Multiply : "+Result3);
System.out.println("Result, Divede : " +Result4);
}
}
public class MyMath{
long add(long a, long b){
return a+b;
}
long mul(long a, long b){
return a*b;
}
long sub(long a, long b){
return a-b;
}
double div(double a, double b){
return a / b;
}
}
java.lang.NoSuchMethodError: main
Exception in thread "main"
출력 완료 (0초 경과) - 정상 종료
걍 이렇게 해라
http://ideone.com/tvya0
움 결국 못살렷네 ㅡㅜ 감사합니다