Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e856828

Browse files
Code reformat made.
1 parent c239fbb commit e856828

File tree

8 files changed

+10
-18
lines changed

8 files changed

+10
-18
lines changed

‎.idea/misc.xml‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/Arrays.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ fun main() {
3131

3232

3333
// charArray
34-
val chars = charArrayOf('a','b','c')
34+
val chars = charArrayOf('a','b','c')
3535

3636

3737
// Using the for loop to show values on the screen
38-
for (i in chars.indices){
38+
for (i in chars.indices){
3939
println(chars[i])
4040
}
4141

‎src/DataTypes.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fun main() {
137137
*/
138138

139139

140-
// Booleans are used in decisionmaking statements.
140+
// Booleans are used in decision-making statements.
141141
val flag = false
142142
println("$flag")
143143

‎src/HashSet.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fun main() {
1111

1212

1313
// declaring a hashSet of chars
14-
val chars = hashSetOf('p','a','z','w')
14+
val chars = hashSetOf('p','a','z','w')
1515

1616
// println set contains
1717
println(chars)
@@ -20,7 +20,7 @@ fun main() {
2020
chars.add('c')
2121

2222

23-
val newChars = setOf('b','o')
23+
val newChars = setOf('b','o')
2424

2525
//making an extra set to add it in chars
2626
chars.addAll(newChars)

‎src/HelloWorld.kt‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@ fun main() {
2020
}
2121
}
2222
*/
23-
24-
2523
}
2624

‎src/Set.kt‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
fun main() {
22

33
/*
4-
54
Set interface is a generic unordered collection of elements and it does not contain duplicate elements.
65
Kotlin supports two types of sets mutable and immutable.
76
@@ -61,7 +60,7 @@ fun main() {
6160
6261
*/
6362

64-
val cities = setOf("Istanbul","Paris","New York","London","Berlin")
63+
val cities = setOf("Istanbul","Paris","New York","London","Berlin")
6564

6665

6766
println("The element at index 3 is : ${cities.elementAt(3)}") // London

‎src/String.kt‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,20 @@ fun main() {
1111
println("$x + $y = $z") // 2 + 3 = 23
1212

1313

14-
1514
// String Type A Value
1615
val languageName = "Kotlin"
1716

1817
//In Kotlin, a String is interpreted as an expression Array
19-
for (character in languageName){
18+
for (character in languageName){
2019

2120
println(character) // K - o - t - l - i - n
2221
}
2322

2423

25-
2624
// String expression's length value : 6
2725
println("Language Name's Character Length : ${languageName.length}")
2826

2927

30-
3128
val nameSurname = " Halil Ozel "
3229

3330
println(nameSurname) // Halil Ozel
@@ -36,7 +33,6 @@ fun main() {
3633
println(nameSurname.trim()) // Halil Ozel
3734

3835

39-
4036
// toUpperCase() : All characters are Big.
4137
val message = "WE love KoTlIn"
4238

@@ -46,7 +42,6 @@ fun main() {
4642
println(message.toLowerCase()) // we love kotlin
4743

4844

49-
5045
// String Value
5146
var tvSeries = "How I Met Your Mother"
5247

‎src/TypeConversions.kt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ fun main() {
2626
val number2: Int = string1.toInt()
2727

2828
// "54"+11 = 5411
29-
println("number1 = ${string1+11}")
29+
println("number1 = ${string1+11}")
3030

3131
// 54 + 11 = 65
32-
println("number2 = ${number2+11}")
32+
println("number2 = ${number2+11}")
3333

3434

3535
// smaller types are NOT implicitly converted to bigger types.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /