
프로그래밍을 하다 보면 기본 타입의 데이터를 객체로 표현해야 하는 경우가 종종 있다. 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
- Design Pattern
- handler
- Livedata
- 안드로이드
- View
- Vue.js #Vue.js + javascript
- coroutine
- ViewPager2
- TabLayout
- 안드로이드 #코틀린 #Android #Kotlin
- 자바
- DataBinding
- activity
- Kotlin
- recyclerview
- CoordinatorLayout
- fragment
- JSONObject
- JSONArray
- ViewModel
- Intent
- 혀가 길지 않은 개발자
- Architecture Pattern
- Android
- ArrayList
- James Kim
- 코틀린
- XML
- MVVM
- java
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |