From 1c54118f0cfec45c5d6ccf0e94c7df2d894dbbb8 Mon Sep 17 00:00:00 2001 From: b1urrrr Date: Thu, 16 Nov 2023 00:16:09 +0900 Subject: [PATCH] =?UTF-8?q?[ADD/#1]=20=EC=BD=94=ED=8B=80=EB=A6=B0=20String?= =?UTF-8?q?=20=EC=8B=A4=EC=8A=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ocomwan/kotlinbasics/Main.kt | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) 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}입니다.") }