WON.dev
chapter02 : Variable_boundary 본문
package org.joonzis.ex;
public class Ex02_Variable_boundary {
static double PI = 3.14; // 전역 변수 선언 및 값 저장
public static void main(String[] args) {
int value = 10;
int sum = value = 20;
System.out.println(sum);
System.out.println(result);
System.out.println(PI);
}
public void local() {
int result = 100;
}
}
'JAVA > chapter02_variable_dataTaye' 카테고리의 다른 글
chapter06 : casting (1) | 2023.05.25 |
---|---|
chapter05 : literal (0) | 2023.05.25 |
chapter04 : String (0) | 2023.05.25 |
chapter03 : Primitive Type (0) | 2023.05.25 |
chapter01 : Variable (0) | 2023.05.25 |