일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Javscript
- stylesheet
- 랜덤넘버
- Java
- 스프링부트
- array
- 자바스크립트
- Hook
- 안드로이드
- TypeScript
- JS
- 코틀린
- 랜덤번호
- button
- SpringBoot
- nodejs
- Android
- GoogleMaps
- 리액트
- fragment
- JavaScript
- React
- TextView
- Kotlin
- 오버라이딩
- npm
- Linux
- scrollview
- RecyclerView
- 구글맵스
- Today
- Total
목록list (2)
타닥타닥 개발자의 일상

파일 및 폴더 구성 layout폴더에 item_spinner.xml 파일 생성 item_spinner.xml activity_main.xml MainActivity.kt package com.example.sample17 import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.View import android.widget.AdapterView import android.widget.ArrayAdapter import android.widget.ListView import android.widget.TextView import androidx.annotation.Dimension class Ma..
fun main(args: Array) { //collection 수집 ArrayList LinkedList HashMap TreeMap //추가, 삭제 불가 var numbers: List = listOf(1,2,3,4,5) for(n in numbers) print("$n") //출력값: 12345 println() var names:List = listOf("one","two","three") for(name in names){ println(name) } /* 출력값 one two three */ println(names.size) //출력값: 3 println(names.get(1)) //출력값: two println(names.indexOf("three")) //출력값:2 println(nam..