프로그래밍을 하다 보면 기본 타입의 데이터를 객체로 표현해야 하는 경우가 종종 있다. public class JavaTest { public static void main(String[] args) { Integer integer = new Integer(123); // boxing System.out.println(getNumber(integer)); Boolean bool = new Boolean(true); // boxing System.out.println(getBoolean(bool)); Long lNumber = new Long(999999999999999999L); // boxing System.out.println(getLong(lNumber)); String str = "James Kim..
MVVM (Model + View + ViewModel) build.gradle (Module: app) android { dataBinding { enabled = true } } 데이터 바인딩 사용하기 위함 activity_main.xml bindingadapter/BindingAdapters.java package com.jwsoft.javaproject.bindingadapter; import android.view.View; import android.widget.LinearLayout; import androidx.databinding.BindingAdapter; public class BindingAdapters { @BindingAdapter("android:JamesVisible") pu..
MVC (Model + View + Controller) activity_main.xml View 역할 model/Player.java package com.jwsoft.model; public enum Player { O, X } model/Cell.java package com.jwsoft.model; public class Cell { private Player value; public void setValue(Player value) { this.value = value; } public Player getValue() { return value; } } model/Board.java package com.jwsoft.model; public class Board { private Cell[][]..
- Total
- Today
- Yesterday
- TabLayout
- coroutine
- Architecture Pattern
- 안드로이드 #코틀린 #Android #Kotlin
- MVVM
- 코틀린
- 혀가 길지 않은 개발자
- java
- activity
- JSONArray
- Livedata
- XML
- ArrayList
- Android
- ViewPager2
- CoordinatorLayout
- Vue.js #Vue.js + javascript
- fragment
- Design Pattern
- DataBinding
- handler
- 안드로이드
- View
- Intent
- ViewModel
- recyclerview
- JSONObject
- 자바
- Kotlin
- James Kim
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |