개발블로그

  • 홈
  • 태그
  • 방명록

논리 1

[JAVA] 연산자

/* 증감 연산자 */ package chap02.ex01.one; public class One { public static void main(String[] args) { int x=1; int y=1; x++; //증가가 나중에 2로 증가 ++y; //증가가 먼저 System.out.println("X : "+x); System.out.println("Y : "+y); int result = (++x)+10; //X가 먼저 2에서 3으로 증가하고 10과 합산 == 13 int result2 = (y++)+10; //y가 먼저 10과 합산되고 뒤늦게 3으로 증가 ==12 System.out.println("result : "+result); System.out.println("result2 : "+r..

JAVA 2021.03.23
이전
1
다음
더보기
프로필사진

개발블로그

개발자 박응디 cjdrud123@naver.com

  • 분류 전체보기 (126)
    • JAVA (81)
    • Python & Django (6)
    • Server(설정 등) (5)
    • DB (2)
    • Git (4)
    • Swift (7)
    • React (6)
    • AWS (2)
    • CT (5)
    • 참고사항 (8)

Tag

entity, code, 설정, mapping, React, query, 개발자, IOS, java, Spring, TDD, IP, test, 개발, swift, APP, JPA, DB, testcode, python,

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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

Copyright © Kakao Corp. All rights reserved.

티스토리툴바