Questions tagged as 'kotlin'

2
answers

What is the equivalent of equalsIgnoreCase () in Kotlin?

What is the equivalent of the String.equalsIgnoreCase() method of Java in Kotlin?     
asked by 20.11.2017 / 05:01
1
answer

What are Raw Types?

Reading and studying a bit about Kotlin, I found the following statement:    Raw are a big problem, but for reasons of   compatible they had to be maintained in Java, but Kotlin   for being a new language does not have this problem anymore....
asked by 17.08.2017 / 16:29
1
answer

What are the main differences between Kotlin and Scala?

The differences between Kotlin and Java are very clear, such as: More concise (up to 40% code reduction) Null Safety Type Inference Data class Interoperable with Java However, all these features already exist in Scala, a languag...
asked by 07.08.2017 / 21:00
1
answer

What is the double exclamation before the method call in Kotlin?

I'm studying Kotlin. I noticed that, in the conversion to type int , it is necessary to put the double exclamation ( !! ). Example: var input = readLine()!!.toInt(); Generally in other languages double exclamation is used to...
asked by 05.08.2017 / 22:02
2
answers

What is the var difference between Kotlin and Java?

With the release of Java 10, the possibility of using var was introduced: var list = new ArrayList<String>(); I have already seen what is the difference between
asked by 25.05.2018 / 22:12
1
answer

What makes Kotlin a faster language than Java?

I've read in some articles that Kotlin is faster than Java, but none of them exemplifies why. [...] As fast as Java ". Kotlin - Evolve your Java code (TDC-2016) Alex Magalhaes [...] Kotlin must compile quickly, coexist with Java and...
asked by 08.09.2017 / 14:13
1
answer

What is the difference in Kotlin between var and val?

Learning Kotlin I came across the following question, according to the documentation:    Classes in Kotlin can have properties. These can be declared as   mutable, using the var keyword or read-only using the val keyword. Classes in Kotl...
asked by 27.07.2017 / 17:40
2
answers

What does the exclamation point after the name of a type mean?

I've seen a lot in Kotlin types marked with an exclamation mark at the end. Especially when using Java APIs. Something like CharSequence! What does this mean?     
asked by 27.07.2018 / 02:17
1
answer

What are extended functions?

I'm writing an article on programming in Kotlin, I came across this name, what are extended functions?     
asked by 25.10.2017 / 19:58
2
answers

Why does Kotlin use a form of declaring functions and variables different from "traditional"?

Traditionally the return type and variable type are indicated at the beginning, before the name: public int soma(int a, int b){ return a + b; } In Kotlin it is indicated after: fun sum(a: Int, b: Int): Int { return a + b } What...
asked by 08.08.2017 / 17:27