File tree 2 files changed +25
-1
lines changed
app/src/main/java/com/merttan/basictypes
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class MainActivity : AppCompatActivity() {
37
37
38
38
// ---------------------------Underscores in numeric literals (since 1.1)-----------------------
39
39
40
- println (" -----Underscores in numeric literals -----" )
40
+ println (" -----Alt çizgi kullanımı -----" )
41
41
val sixMillion = 1_000_000
42
42
val creatingCartNumber= 123_456_678_123L
43
43
val socialSecurityNumber= 234_000_000L
@@ -49,6 +49,29 @@ class MainActivity : AppCompatActivity() {
49
49
println (" hexBytes = $hexBytes " )
50
50
println (" bytes = $bytes " )
51
51
52
+ val a : Int = 100
53
+ val boxedA : Int? = a
54
+ val anotherBoxedA : Int? = a
55
+
56
+ val b : Int = 128
57
+ val boxedB : Int? = b
58
+ val anotherBoxedB : Int? = b
59
+ println (boxedA == = anotherBoxedA) // true
60
+ println (boxedB == = anotherBoxedB) // false
61
+
62
+
63
+ val c : Int = 10000
64
+ println (c== c)// true
65
+ val boxedC: Int? = c
66
+ val anotherBoxedC : Int? = c
67
+ println (boxedC == anotherBoxedC) // true
68
+
69
+
70
+
71
+
72
+
73
+
74
+
52
75
53
76
54
77
You can’t perform that action at this time.
0 commit comments