BAEL-19 iterate
This commit is contained in:
parent
160b9ae6c3
commit
dee7d1ab12
|
@ -31,12 +31,14 @@ class ItemManager(val categoryId: String, val dbConnection: String) {
|
||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
val numbers = arrayOf("first", "second", "third", "fourth")
|
val numbers = arrayOf("first", "second", "third", "fourth")
|
||||||
|
|
||||||
|
var concat = ""
|
||||||
for (n in numbers) {
|
for (n in numbers) {
|
||||||
println(n)
|
concat += n
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i in 0..9) {
|
var sum = 0
|
||||||
println(i)
|
for (i in 2..9) {
|
||||||
|
sum += i
|
||||||
}
|
}
|
||||||
|
|
||||||
val firstName = "Tom"
|
val firstName = "Tom"
|
||||||
|
|
Loading…
Reference in New Issue