Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- know
- might have p.p
- happen to
- by any chance
- keep -ing
- sort함수
- it's a good thing
- C++
- if조건절
- html
- Realtime Rendering
- metascore
- 형변환
- UE4
- relif
- 명세기반테스트
- end up ing
- counldn't have
- 게임QA
- gameQA
- for ing
- java
- continue to
- 변수
- I'm glad
- by until
- 제5인격
- 명절 표현
- ISTQB
- 코로나19
Archives
- Today
- Total
Records rather than Memories
[java] 변수 (Variable) 본문
변수의 선언과 할당
int a; // 변수 선언
- int : data type
- a : name of variable(변수의 이름)
* int는 정수를 담겠다고 지정한 것
a=1;
System.out.println(a+1); //2
a=2;
System.out.println(a+1); //3
a에 담겨진 값을 이용해 출력이 된다.
'Software > JAVA' 카테고리의 다른 글
[java] 정수와 실수 (0) | 2019.10.01 |
---|---|
Eclipse의 기능 (0) | 2019.09.30 |
JAVA의 실행 (0) | 2019.09.29 |
[java] Data type 자료형 (0) | 2019.09.28 |
JAVA의 구성 (0) | 2019.09.27 |
Comments