본문 바로가기
Programming/JAVA

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

by DKOFI 2018. 7. 23.
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

'Programming > JAVA' 카테고리의 다른 글

05 JAVA SWITCH 문 DK  (0) 2018.07.27
04 JAVA IF문 DK  (0) 2018.07.27
01 JAVA의 컴파일 과정 DK  (0) 2018.07.23
02 JAVA 환경구축 DK  (0) 2018.07.23

댓글