본문 바로가기

카테고리 없음

int a=5;

System.out.println(a++);  --. 출력 : 5 (이후 +1됨 내부에서)

int b= ++a; // 6 + 1

System.out.println(b); --출력 : 7