Achiven Season 5

  • 홈
  • 태그
  • 미디어로그
  • 방명록

null체크 1

if(variable == null) on Kotlin

Kotlin에서 null 체크는 어떻게 할 지 궁금해졌다. 아마.. if(variable === null) 이 맞는것이겠지..? 그래서 찾아 보니.. if(variable == null) 을 쓰면 자동으로 if(variable === null) 변환해준다고 한다. Note that there's no point in optimizing your code when comparing to null explicitly: a == null will be automatically translated to a === null. 결론, if(variable == null) 과 if(variable === null) 둘 다 null 체크하는 것이다. 출처 : kotlinlang.org/docs/reference/equ..

컴퓨터공부/Kotlin & Java 2020.09.22
이전
1
다음
더보기
프로필사진

Achiven Season 5 in the U.S.

  • 분류 전체보기 (1649)
    • 오늘하루 (819)
    • 미국 생활 (4)
    • 책을읽자!! (79)
      • 읽을 책 및 독서법 등 (7)
      • 읽었어 (38)
      • 다음 읽을 책 (0)
    • 재테크 (40)
    • 머리한번 식힐까? (99)
    • 컴퓨터공부 (362)
      • Android (32)
      • Kotlin & Java (34)
      • RxJava (5)
      • 알고리즘 (16)
      • MFC (10)
      • Linux & Unix (69)
      • C & C++ & STL (71)
      • Embedded (31)
      • Python (1)
    • 컴퓨터 Tip (79)
    • 영어공부!! (25)
    • 삶의 조언 (134)
      • 생활 필수품 정리 (3)
      • 오문, 오감 변화일기 (2)
    • 아이디어 (1)

Tag

리뷰, 펀드, Kotlin, 포인터, 컴퓨터, cfaq, 필리핀, 마라톤, 주식, 블로그, 광고, 토익, Java, 재테크, ARM Processor, 구글, 영어, Android, 책, 노래,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

  • Achiven Season 5 in the U.S. : Miracle Morning + G⋯
  • Achiven Season 4 : Grit

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바