public static int gcd(int x, int y){
                        if (y == 0){
                                return x;
                        }
                        else{
                                return gcd(y, x%y);
                        }
        

이거 자바 스크립트 최대공약수 찾는거 맞아? 일단 찾긴 어디서 잘찾았는데

근데 이클립스로 런하면 

Error: Main method not found in class test, please define the main method as:
   public static void main(String[] args)

이렇게떠 메인 주장이없어서그런거야? 

메인주장은어떻게써요?