JAVA์˜ ์ •์„(ch 1)

Du-Hyeon, Kimยท2023๋…„ 7์›” 11์ผ
0

JAVA

๋ชฉ๋ก ๋ณด๊ธฐ
2/11
post-thumbnail

๐Ÿฌ Ch 1. ์ž๋ฐ”๋ฅผ ์‹œ์ž‘ํ•˜๊ธฐ ์ „์—

๐Ÿ’ป Java ์‹คํ–‰ ์ˆœ์„œ

class ํด๋ž˜์Šค๋ช…{
	public static void main(String[] args){
    	/*
        	main code here
        */
    }
}
  1. ํ”„๋กœ๊ทธ๋žจ์˜ ์‹คํ–‰์— ํ•„์š”ํ•œ ํด๋ž˜์Šค(*.class)ํŒŒ์ผ ๋กœ๋“œ
  2. ํด๋ž˜์ŠคํŒŒ์ผ์„ ๊ฒ€์‚ฌํ•œ๋‹ค.
  3. ์ง€์ •๋œ ํด๋ž˜์Šค์—์„œ main์„ ํ˜ธ์ถœํ•œ๋‹ค.
    main๋ฅผ ํฌํ•จํ•˜๋Š” ํด๋ž˜์Šค๊ฐ€ ํ•˜๋‚˜๋Š” ์žˆ์–ด์•ผํ•จ -> ์‹œ์ž‘์œ„์น˜(๋ฌด์ €๊ฑด ํ•˜๋‚˜์˜ main์€ ์žˆ์–ด์•ผํ•จ)

๐Ÿ’ป Develope Tool (eclipse)

  • preference>java>content assist ์—์„œ auto activation trigger์— .abcdefghijklmnopqrstuvwxyz๋กœ ํ•˜๋ฉด ๋ชจ๋“  ๋ฌธ์ž์— ๋Œ€ํ•ด์„œ ์ž๋™์™„์„ฑ ๋ฌธ๊ตฌ๊ฐ€ ์ž๋™์œผ๋กœ ๋ณด์ž„
  • project๋งŒ๋“ค ๋•Œ,
    • create module-info๋ฅผ ์ฒดํฌํ•ด์ œํ•˜๊ณ ,
    • class ์ƒ์„ฑ์‹œ pacakages๊ฐ€ ๋นˆ์นธ์œผ๋กœ createํ•œ๋‹ค!

๐Ÿ’ป JAVA์˜ ์ •์„ code ์ž๋ฃŒ(github)

url : javajungsuk_basic

๐Ÿ’ป Source file export

  • ' export > general > archive file ' select
  • select location and exporting file

0๊ฐœ์˜ ๋Œ“๊ธ€