본문 바로가기 메뉴 바로가기

개발 노트

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

개발 노트

검색하기 폼
  • 분류 전체보기 (65)
    • android (38)
    • linux (4)
    • React Native (8)
    • Mongo DB (2)
    • Mac (1)
    • javascript (1)
    • algorithm (1)
    • kotlin (7)
  • 방명록

https://hwan-shell.tistory.com/244 (1)
kotlin 배열 선언 및 반복문 문법

배열 선언 하는 법 var intArr:Array = arrayOf(1, 2, 3, 4) var intArr2 = arrayOfNulls(5) var anyArr : Array = arrayOf(1, "awd", 3.2, 4) 반복문 쓰는 법 for(i: Int in 1..10) print("$i ") //output : 1, 2, 3, 4, 5 ... 10 val len: Int = 5 for(i in 1..len) print("$i ") //output : 1, 2, 3, 4, 5 for(i in 1 until len) print("$i ") //output : 1, 2, 3, 4 for(i: Int in 1..10 step(2)) print("$i ") //output : 1, 3, 5, 7, 9 ..

kotlin 2022. 9. 29. 10:25
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 클래스형 코드
  • rn
  • Android
  • text 부분 색 칠하기
  • not starting .bash_profile
  • https://medium.com/@limgyumin/%EC%BD%94%ED%8B%80%EB%A6%B0-%EC%9D%98-apply-with-let-also-run-%EC%9D%80-%EC%96%B8%EC%A0%9C-%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94%EA%B0%80-4a517292df29
  • https://hwan-shell.tistory.com/244
  • 안드로이드
  • 귀찮아;;
  • 자바
  • React Native
  • mac android
  • 차번호 정규표현식
  • insert
  • 데이터베이스
  • ubunut 설치 link
  • ubunut android
  • not found adb
  • MongoDB
  • adb 환경변수
  • 명령어
  • 함수형 코드
  • not working adb
  • react native state
  • nosql
  • spannableText
  • 차번호 정규식
  • 구글 맵 경로 그리기
  • 구글 맵 선그리기
  • mongo db
more
«   2026/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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바