본문 바로가기
[Kotlin Tutorial] 클래스, objects, 그리고 인터페이스 #2 [Kotlin Tutorial] 클래스, objects, 그리고 인터페이스 #2 참조 : Kotlin in Action 4.3. Compiler-generated methods: Data classes and Class delegation 4.3.1. Universal object methods -Java 에서 == 는 primitive 나 object 의 reference 를 비교하는 것.Kotlin 에서는 == 가 기본비교이다. equals 를 호출해서 비교한다.그럼 Java 에서의 == 는? === 로 대체된다. 4.3.2. Data classes: autogenerated implementations of universal methods -data class Client(val name: Stri.. 2017. 8. 14.
[Kotlin Tutorial] 함수 정의하고 호출하기 #2 [Kotlin Tutorial] 함수 정의하고 호출하기 #2 참조 : Kotlin in Action 3.4. Working with collections: Varargs, Infix calls, and Library support 3.4.1. Extending the Java collections API -val strings: List = listOf(“first”, “second”, “thrid”)strings.last() val numbers: Collection = setOf(1, 14, 2)numbers.max() last 와 max 는 extension 이다.이 외에도 많이 있으니 IDE 의 code completion 을 잘 활용해보시라~ 3.4.2. Varargs: functions tha.. 2017. 8. 3.
[Kotlin Tutorial] Kotlin 소개 - Kotlin : what and why [Kotlin Tutorial] Kotlin 소개 - Kotlin : what and why 참조 : Kotlin in Action -Kotlin 은 Java platform 을 targeting 한 새로운 프로그래밍 언어.Java 코드와 함께 쓰일 수 있다.Android 개발 뿐만 아니라 Server-side 개발에도 쓰일 수 있다. -Java 의 iib, framework 와 함께 쓰일 수 있고, Java 와 비교해 Performance 도 거의 동일하다. 1.1. A Taste of Kotlin -http://try.kotl.in 을 통해 코드 실습을 할 수 있다. -data class Person(val name: String, val age: Int? = null) fun main(args: A.. 2017. 7. 12.
Objective-C 고급 ( Advanced Objective-C ) Objective-C 고급 ( Advanced Objective-C ) 출처 : http://www.tutorialspoint.com/objective_c/objective_c_classes_objects.htm > - class 는 @interface 와 @implementation 의 두 파트로 나뉘어 정의된다. - 대부분이 objects 를 상속한다. - objects 는 메세지를 받기 때문에 receiver 로 불리기도 한다. - Properties 는 다른 class 에서의 access 를 접근하도록 도와준다. - ex) @interface Box:NSObject { double length; double breadth; } @property(nonatomic, readwrite) double .. 2015. 6. 18.
android language code ( extension of values folders ) Country Name Introduced Version. English, US (en_US) 1.1German, Germany (de_DE) 1.1Chinese, PRC (zh_CN) 1.5Chinese, Taiwan (zh_TW) 1.5Czech, Czech Republic (cs_CZ) 1.5Dutch, Belgium (nl_BE) 1.5Dutch, Netherlands (nl_NL) 1.5English, Australia (en_AU) 1.5English, Britain (en_GB) 1.5English, Canada (en_CA) 1.5English, New Zealand (en_NZ) 1.5English, Singapore(en_SG) 1.5French, Belgium (fr_BE) 1.5Fr.. 2015. 2. 27.
[Tutorial] AndEngine Introduction [Tutorial] AndEngine Introduction * AndEngine 공식 사이트http://www.andengine.org/ 출처 : http://www.matim-dev.com/introduction-to-the-andengine.html Introduction -free open source OpenGL android game engine. -OpenGL 을 몰라도 Java 를 사용할 줄만 알면 OpenGL 의 feature 를 사용할 수 있다.물론 OpenGL 에 대한 지식과 경험이 있으면 더 도움이 된다. Feature -Multi resolution support -Multi touch supprot. -Physics extension -TiledMaps in TMX format .. 2014. 4. 24.
Android app recommendation for kids - coloring. Android app recommendation for kids - coloring. ** To download the Coloring app, click here ** Today's recommend app is "Coloring" App. The title is very simple, but it provides many cute, humorous, beautiful coloring pictures.So it is good for raising kids' creativity and imagination. The smart phone becomes one of the toys to kids as it is getting prevalent.So you might be worried about what k.. 2014. 3. 20.
[android] MIME Type 을 쉽게 얻어와보자! 안드로이드, MIME Type 을 쉽게 얻어와보자! 파일처리하는 앱을 만들다 보면, 간단하게 하기 위해 Intent 를 날리곤 한다.그런데, 해당 파일을 처리해줄 앱을 찾기 위해서는 type 을 제대로 넣어주어야 한다.그런데 MIME Type 을 수작업으로 다 매핑해주기는 귀찮고, 대부분의 general 한 파일에 대한 mime type 을 쉽게 얻어오는 방법은 없을까? 있다. MimeTypeMap 이라는 class 가 있어서 이렇게 이용하면 된다. MimeTypeMap mimeTypeMape = MimeTypeMap.getSingleton();String mimeType = mimeTypeMape.getMimeTypeFromExtension( ".pdf" ); // mimeType = "applicat.. 2013. 8. 11.
반응형