카테고리 없음

2015-09-08 모바일 프로그래밍 수업 1

재우이 2015. 9. 8. 10:40

자바에서 모든 클래스는 대문자로 시작


public class HelloWorld{


    

    public void hi()

    {

        System.out.println("HI");

    }

    


     public static void main(String []args){

        System.out.println("Hello World");

        HelloWorld hw = new HelloWorld();

        hw.hi();

        

        int size = 27;

        String name = "Fido";

         

     }

}

---------------------------------------------------
public class HelloWorld{

     public static void main(String []args){
       
       int z = 20;
       while (z= 17)
       {
            System.out.println("weird");
           
       }
         
     }
}

//z= 17 은 평가 할 수 없다 자바에서는


99 bottles of beer on the wall

99 bottles of beer

Take one down

Pass it around

98 bottles of beer on the wall


98 bottles of beer on the wall

98 bottles of beer

Take one down

Pass it around

2.bottles of beer the wall


2 bottles of beer the wall

2 bottles of beer

Take one down.

Pass it around


1.bottles of beer the wall

1 bottle of beer the wall

1 bottle of beer

Take one down.

Pass it around


맥주가없습니다