분류 전체보기445 Greedy ] 🔁유형 2 - 숫자 카드 게임 보호되어 있는 글 입니다. 2021. 1. 17. Greedy ] 🔁유형 1 - 큰 수의 법칙 보호되어 있는 글 입니다. 2021. 1. 17. Kotiln Error ] 'break' and 'continue' are not allowed in 'when' statements. Consider using labels to continue/break from the outer loop 아래 코드를 while (...) { when (itemType) { 1 -> continue else -> break } } 이렇게 수정해줍니다. loop@ while (...) { when (itemType) { 1 -> continue@loop else -> break@loop } } @label을 사용하는 이유 Any expression in Kotlin may be marked with a label. Labels have the form of an identifier followed by the @ sign, for example: abc@, fooBar@ are valid labels(...) A break qualified with a label jumps to the execution p.. 2021. 1. 15. Log 작성] Logcat을 이용한 로그 작성 및 보기 Logcat을 이용한 로그 작성 및 보기 | Android 개발자 | Android Developers Android 스튜디오에서 Logcat 창에 시스템 메시지를 표시하는 방법을 알아보세요. developer.android.com ✔Logcat 창에는 시스템 메시지(예: 가비지 컬렉션 발생)와 Log 클래스를 사용하여 앱에 추가한 메시지가 표시됩니다. ✔메시지는 실시간으로 표시되며, 이전 메시지를 볼 수 있도록 기록이 유지됩니다. 앱 로그 보기( Logcat창 ) 로그 메시지 작성 Log.e(String, String) (오류) Log.w(String, String) (경고) Log.i(String, String) (정보) Log.d(String, String) (디버그) Log.v(String, St.. 2021. 1. 15. 이전 1 ··· 38 39 40 41 42 43 44 ··· 112 다음