๋ฐ์ดํฐ ํ์
(์๋ฃํ)
๋ฐ์ดํฐํ์
ํ๋ก์ ํธ ์์ฑ ์ผ์ง ํด๋์ค๋ค ํ๋ฒ์ ๋ซ๋ ๋ฒ ctrl+shift+f4 public class ์๋ฃํ01 { public static void main(String[] args) { //์ฐธ, ๊ฑฐ์ง์ ์ ์ฅํ ์ ์๋ ๋ฐ์ดํฐ ํ์
=์๋ฃํ boolean bool = true; //false System.out.println("bool = " + bool); //์ ์๋ฅผ ์ ์ฅํ ์ ์๋ ์๋ฃํ //byte, short, int, long byte num1 = 10; //num1 = 128; ์ปดํ์ผ ์ค๋ฅ //์ค์๋ฅผ ์ ์ฅํ ์ ์๋ ์๋ฃํ //float, double double num2 = 10.5; System.out.println("num2 = " + num2); //๋ฌธ์๋ฅผ ์ ์ฅํ๋ ์๋ฃํ char /..
2023.01.17