Programming/JAVA

03 JAVA 첫 프로그램 'Hello World' DK

DKOFI 2018. 7. 23. 13:34
728x90


이클립스 실행 후 File -> New -> Project 클릭



Java 폴더의 Java Project 선택



Project name 에 원하는 이름을 넣고 Finish 버튼 클릭



보통은 안뜨겠으나 뜨게되면 Don't Create 버튼 클릭


No 버튼 클릭


Package, Name에 원하는 이름을 지정하고, 

public static void main(String[] args) 에 체크!


main 메서드 밑에 

---- System.out.println("Hello Java!!"); ----

위처럼 입력 후 실행버튼 클릭.


입력한 내용이 아래 출력되게 된다!!





---------------------------------------------------------------------


FirstTestFirstTestFirstTestFirstTestFirstTest
AppleAndroidAppleAndroidAppleAndroAppleAndroididAppleAndroidIosJellybeanIosJellybeanIosJellybeanIosJellybeanIosJellybeanIosJellybeanFirstTestFirstTestFirstTestFirstTestFirstTest
AppleAndroidAppleAndroidAppleAndroAppleAndroididAppleAndroidIosJellybeanIosJellybeanIosJellybeanIosJellybeanIosJellybeanIosJellybeanFirstTestFirstTestFirstTestFirstTestFirstTest
AppleAndroidAppleAndroidAppleAndroAppleAndroididAppleAndroidIosJellybeanIosJellybeanIosJellybeanIosJellybeanIosJellybeanIosJellybean



300x250