You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kotlin/javafx-textcounter-kotlin/src/main/kotlin/com/example/javafxtextcounterkotlin/KotlinFXMLTextCounterController.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,6 @@ class KotlinFXMLTextCounterController {
30
30
.toTypedArray()
31
31
.size // get length of text area in lines
32
32
textCountResult!!.text ="Characters: $chars\nWords: $words\nLines: $lines"// update text
Copy file name to clipboardExpand all lines: kotlin/javafx-textcounter-kotlin/src/main/kotlin/com/example/javafxtextcounterkotlin/KotlinTextCounterJavaFX.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -31,14 +31,14 @@ class KotlinTextCounterJavaFX : Application() {
31
31
.dropLastWhile { it.isEmpty() }
32
32
.toTypedArray()
33
33
.size // get length of text
34
-
// area in words
34
+
// area in words
35
35
val lines =
36
36
textContent.text
37
37
.split("\\r?\\n".toRegex())
38
38
.dropLastWhile { it.isEmpty() }
39
39
.toTypedArray()
40
40
.size // get length of text
41
-
// area in lines
41
+
// area in lines
42
42
textCountResult.text =
43
43
"Characters: $chars\nWords: $words\nLines: $lines"// update text count output
0 commit comments