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 b8ab4cb

Browse files
Code reformat made.
1 parent 2f74d4a commit b8ab4cb

File tree

9 files changed

+2
-19
lines changed

9 files changed

+2
-19
lines changed

‎src/ArrayList.kt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ fun main() {
2020

2121
// print ArrayList elements
2222
for (language in arrayList) {
23-
2423
println("Mobile Programming Language : $language")
2524
}
2625

‎src/Arrays.kt‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ fun main() {
99
- They can be accessed programmatically through their indexes (array[1], array[0], etc.)
1010
- They're mutable.
1111
- Their size is fixed.
12-
1312
*/
1413

1514

@@ -22,11 +21,9 @@ fun main() {
2221

2322

2423
/*
25-
2624
Kotlin also has some built-in factory methods to create arrays of primitive data types,
2725
such as byteArray, intArray, shortArray, etc.
2826
These classes do not extend the Array class; however, they implement the same methods and properties.
29-
3027
*/
3128

3229

@@ -38,6 +35,4 @@ fun main() {
3835
for (i in chars.indices) {
3936
println(chars[i])
4037
}
41-
42-
4338
}

‎src/DataTypes.kt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ fun main() {
22

33
// As you know, a variable is a location in memory (storage area) to hold data.
44

5-
65
// variable declaration of type String
76
var language: String
87

‎src/HashSet.kt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ fun main() {
3333
This allows for accessing desired elements with O(1) complexity but it costs a lot of memory
3434
3535
For more : https://en.wikipedia.org/wiki/Hash_table
36-
3736
*/
3837

3938
// removing a from the set

‎src/HelloWorld.kt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ fun main() {
55
Since it's a very simple program it's often used to introduce a New Programming Language.
66
*/
77

8-
98
println("Hello World!") // The println() function prints the given message inside the quotation marks
109
// and newline to the standard output stream.
1110

‎src/Set.kt‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ fun main() {
1111
1212
- This function returns a new read only set of given elements.
1313
- The elements are iterated over, according as they are stored .
14-
1514
*/
1615

1716
val mySet = setOf("Kotlin", "Java", "Swift", "Objective-C", "Flutter", "React Native")
@@ -62,7 +61,6 @@ fun main() {
6261

6362
val cities = setOf("Istanbul", "Paris", "New York", "London", "Berlin")
6463

65-
6664
println("The element at index 3 is : ${cities.elementAt(3)}") // London
6765

6866
println("The index of element is : ${cities.indexOf("Istanbul")}") // 0

‎src/String.kt‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
fun main() {
22

3-
43
var x = "2"
54
var y = "3"
65

@@ -16,11 +15,9 @@ fun main() {
1615

1716
//In Kotlin, a String is interpreted as an expression Array
1817
for (character in languageName) {
19-
2018
println(character) // K - o - t - l - i - n
2119
}
2220

23-
2421
// String expression's length value : 6
2522
println("Language Name's Character Length : ${languageName.length}")
2623

@@ -59,5 +56,4 @@ fun main() {
5956
println("newSeries Size : ${newSeries.size}") // newSeries Size : 4
6057

6158
println("newSeries[2] = ${newSeries[2]}") // newSeries[2] = ur M
62-
6359
}

‎src/TypeConversions.kt‎

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

33
/*
4-
54
In Kotlin, a numeric value of one type is not automatically converted to another type even when the other type is larger.
65
This is different from how Java handles numeric conversions.
76
@@ -37,6 +36,6 @@ fun main() {
3736

3837
/*
3938
val b: Byte = 1 // OK, literals are checked statically
40-
val i: Int = b // Type mismatch.*/
41-
39+
val i: Int = b // Type mismatch.
40+
*/
4241
}

‎src/Variables.kt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
fun main() {
2-
32
/*
43
var (Mutable Reference) - The variable declared using var keyword can be changed later in the program.
54
It corresponds to regular Java variable.

0 commit comments

Comments
(0)

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