
리스트(List)는 무엇인가? import java.util.* fun main() { // 연결리스트(LinkedList) 데이터 삽입 시간 val linkedList: LinkedList = LinkedList() linkedList.add("1") linkedList.addAll(arrayOf("2", "3")) linkedList.addFirst("Head") linkedList.addLast("Last") println(linkedList) var startTime = System.currentTimeMillis() for (i in 0 until 10) { linkedList.add(4, "?") } println(linkedList) println("연결리스트(LinkedList) 데이터 삽..

Queue + LinkedList import java.util.* fun main() { val queue: Queue = LinkedList() queue.add("1번") queue.add("2번") queue.add("3번") queue.add("4번") queue.add("5번") queue.add("5번") println(queue.element()) // head 값 리턴 (삭제 안함) println(queue.elementAt(2)) // 해당 인덱스의 값 리턴 } import java.util.* fun main() { val queue: Queue = LinkedList() queue.add("1번") queue.add("2번") queue.add("3번") queue.add("4번")..

fun main() { val linkedList: LinkedList = LinkedList() linkedList.add("1번") // 데이터 삽입 linkedList.addFirst("2번") // 맨 앞에 데이터 삽입 linkedList.addLast("3번") // 맨 뒤에 데이터 삽입 linkedList.add("4번") // 맨 뒤에 데이터 삽입 for (item in linkedList) { print("$item ") } } fun main() { val linkedList: LinkedList = LinkedList() linkedList.add("1번") // 데이터 삽입 linkedList.addFirst("2번") // 맨 앞에 데이터 삽입 linkedList.addLast("3..
- Total
- Today
- Yesterday
- MVVM
- 코틀린
- Architecture Pattern
- View
- 안드로이드
- Design Pattern
- 안드로이드 #코틀린 #Android #Kotlin
- handler
- TabLayout
- coroutine
- java
- JSONObject
- ViewModel
- JSONArray
- Livedata
- Kotlin
- 혀가 길지 않은 개발자
- Intent
- Vue.js #Vue.js + javascript
- recyclerview
- XML
- ViewPager2
- James Kim
- activity
- ArrayList
- CoordinatorLayout
- DataBinding
- 자바
- Android
- fragment
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |