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 |
Tags
- 별찍기
- dart
- dataclass
- BufferedWriter
- 안드로이드
- Android
- 반복문
- BufferedReader
- 코딩테스트
- For
- Scanner
- Kotlin
- App
- array
- 다트
- flutter
- error
- While
- string
- Java
- CLASS
- android studio
- for문
- 앱개발
- IF
- 프로그래머스
- Return
- androidstudio
- 코틀린
- 백준
Archives
- Today
- Total
목록ArrayList (2)
amid.jungs
🧐 코틀린 기본 04
I. arraylist를 이용한 반복문 ✔️for문 1..10 : 1에서 10까지 반복문 실행 step2 : 2씩 건너뛰면서 반복문 실행 (ex. 1,3,5,7,9) until 100 : 99까지 100을 포함하지 않음 ✔️while문 0~9까지를 출력 index++이 없다면 0이 무한대로 출력됨 ☑️실행 결과 : a b c d 1번째 학생 : a 2번째 학생 : b 3번째 학생 : c 4번째 학생 : d 55 current index : 0 current index : 1 current index : 2 current index : 3 current index : 4 current index : 5 current index : 6 current index : 7 current index : 8 curr..
Kotlin 문법
2021. 2. 18. 17:18
🤓자바기본07
🌱ArrayList I. 배열의 값을 수정하기 scoreList.add(index:2, element: 200); -> 2번째 배열 (3번째에 위치) 에 200을 갖는 배열을 추가 실행결과 : [10,20,200,30,40,50] scoreList.remove(index:2); -> 2번째 배열 (3번째에 위치)을 삭제함 출력시 제외하고 출력됨 실행결과 : {10,20,40,50} II.여러 방법으로 출력하기 (이미지 코드 ) 실행결과 get(5) : 50 size() : 6 scoreList : [10,20,200,30,40,50]
Java 기본
2021. 1. 30. 22:47