java ExamTest 해주셔야죠..
: [root@localhost javasource]# java Exam
: Exception in thread "main" java.lang.NoSuchMethodError: main
:
: 저런 에러가 나옵니다...
: 이유가 멀까요..
: 컴파일까진 잘 되다가..
: 실헹이 안되네요..
:
:
: --코딩 내용--
:
:
:
: class Exam
: {
:
: int c;
:
:
: public int add(int a, int b)
: {
: c = a + b;
: return c;
: }
:
: }
:
: class ExamTest
: {
:
: public static void main(String <> args)
: {
:
: int sum;
: int x, y;
:
: x = Integer.parseInt(args[0]);
: y = Integer.parseInt(args[1]);
:
: Exam examobject = new Exam();
:
: sum = examobject.add(x,y);
: System.out.println("입력한 값의 합은" + sum + "입니다");
: }
: }
:
:
: [root@localhost javasource]# java Exam
: Exception in thread "main" java.lang.NoSuchMethodError: main
:
: --
: 내일은 없다..오직 현재뿐..--하루동안 접속 안했더니 세상이 거꾸러져 있군요..
T.T