HelloWorld, StringTemplates, Variables
This commit is contained in:
commit
0c2ba0586d
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
out
|
||||||
|
.idea
|
5
io/kotlinstudy/tour/HelloWorld.kt
Normal file
5
io/kotlinstudy/tour/HelloWorld.kt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
package io.kotlinstudy.tour
|
||||||
|
|
||||||
|
fun main() {
|
||||||
|
println("Hello, Kotlin")
|
||||||
|
}
|
9
io/kotlinstudy/tour/StringTemplates.kt
Normal file
9
io/kotlinstudy/tour/StringTemplates.kt
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
package io.kotlinstudy.tour
|
||||||
|
|
||||||
|
fun main() {
|
||||||
|
val customers = 10
|
||||||
|
|
||||||
|
println("There are $customers customers")
|
||||||
|
|
||||||
|
println("There are ${customers + 1} customers")
|
||||||
|
}
|
10
io/kotlinstudy/tour/Variables.kt
Normal file
10
io/kotlinstudy/tour/Variables.kt
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
package io.kotlinstudy.tour
|
||||||
|
|
||||||
|
fun main() {
|
||||||
|
val popcorn = 5
|
||||||
|
val hotdog = 7
|
||||||
|
var customers = 10
|
||||||
|
|
||||||
|
customers = 8
|
||||||
|
println(customers)
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user