Skip to content

Commit 5ba8342

Browse files
committed
Chapter 1
Döngüler
1 parent 30852d0 commit 5ba8342

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

Loops/.idea/compiler.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Loops/.idea/gradle.xml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Loops/.idea/misc.xml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Loops/app/src/main/java/com/merttan/loopslearning/MainActivity.kt

+25
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package com.merttan.loopslearning
22

33
import androidx.appcompat.app.AppCompatActivity
44
import android.os.Bundle
5+
import kotlin.concurrent.thread
6+
import kotlin.properties.Delegates
57

68
class MainActivity : AppCompatActivity() {
79

@@ -41,10 +43,33 @@ class MainActivity : AppCompatActivity() {
4143
when {
4244
"apple" in items2 -> println("apple is fine too")
4345
}
46+
println("--------------------------------------")
47+
48+
var dizi =listOf<Int>()
49+
for (i in 1..1000){
50+
thread {
51+
dizi = dizi + i
52+
53+
}
54+
}
55+
Thread.sleep(1000)
56+
57+
println(" dizi boyutu ${dizi.size}")
58+
59+
/*
60+
var names by Delegates.observable(listOf<String>()){ _, old, new -> println(" $old to $new")}
61+
names += "MERT"
62+
names += "TAN"
63+
64+
*/
65+
66+
67+
4468

4569

4670
}
4771

72+
4873
}
4974

5075
fun forLoop(){

0 commit comments

Comments
 (0)