diff --git a/WEEK01/app/src/main/java/com/ocomwan/kotlinbasics/Main.kt b/WEEK01/app/src/main/java/com/ocomwan/kotlinbasics/Main.kt index 918a358..619c204 100644 --- a/WEEK01/app/src/main/java/com/ocomwan/kotlinbasics/Main.kt +++ b/WEEK01/app/src/main/java/com/ocomwan/kotlinbasics/Main.kt @@ -3,15 +3,12 @@ package com.ocomwan.kotlinbasics const val num = 20 fun main() { - var i = 10 - var l = 20L - - l = i.toLong() - i = l.toInt() - - var name = "" - name = i.toString() - - var name2 = "10" - i = name2.toInt() + var name = "hello" + print(name.uppercase()) + print(name.lowercase()) + print(name[0]) + + name = "채연" + print("제 이름은 ${name}입니다.") + print("제 이름은 ${name + 10}입니다.") }