일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- stylesheet
- GoogleMaps
- Java
- TypeScript
- Kotlin
- button
- Javscript
- 랜덤번호
- 안드로이드
- 오버라이딩
- Android
- JS
- npm
- React
- SpringBoot
- 코틀린
- 랜덤넘버
- scrollview
- Hook
- RecyclerView
- Linux
- 스프링부트
- TextView
- JavaScript
- 구글맵스
- fragment
- 자바스크립트
- nodejs
- 리액트
- array
- Today
- Total
목록list (2)
타닥타닥 개발자의 일상
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/GOFDQ/btrsC9CdPwN/vM4ujKzD0de7Mu7AEpshyk/img.png)
파일 및 폴더 구성 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..