From 0f7379bb04288597b7e6a293aaea43a9f51ef0ad Mon Sep 17 00:00:00 2001 From: b1urrrr Date: Thu, 16 Nov 2023 00:09:24 +0900 Subject: [PATCH] =?UTF-8?q?[ADD/#1]=20=EC=BD=94=ED=8B=80=EB=A6=B0=20?= =?UTF-8?q?=ED=98=95=EB=B3=80=ED=99=98=20=EC=8B=A4=EC=8A=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/ocomwan/kotlinbasics/Main.kt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 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 7f83641..918a358 100644 --- a/WEEK01/app/src/main/java/com/ocomwan/kotlinbasics/Main.kt +++ b/WEEK01/app/src/main/java/com/ocomwan/kotlinbasics/Main.kt @@ -4,8 +4,14 @@ const val num = 20 fun main() { var i = 10 - var name = "채연" - var point = 3.3 + var l = 20L - i = 20 + l = i.toLong() + i = l.toInt() + + var name = "" + name = i.toString() + + var name2 = "10" + i = name2.toInt() }