perryprog
06/16/2017, 10:07 PMnounours
06/17/2017, 3:37 PMobject
, does instanciating it two times creates two instances ?aviran
06/18/2017, 6:16 PMsjthn
06/19/2017, 8:53 AMakbarsha03
06/19/2017, 11:47 AMchalup
06/20/2017, 10:25 AMfunrep
06/20/2017, 11:18 AMwhile ((line = inp.readLine()) != null) {
result.append(line)
}
jordan_k_miles
06/20/2017, 7:08 PMjschneider
06/20/2017, 9:19 PMblindbox
06/21/2017, 1:40 AMval results: (MutableList<(MutableMap<String!, Any!>..Map<String!, Any!>?)>..List<(MutableMap<String!, Any!>..Map<String!, Any!>?)>?)
especially the double dots. The function that returns that type was actually returning this java type, List<Map<String, Object>>
fjanicki
06/21/2017, 5:09 AMerror: cannot access NonExistentClass
class file for error.NonExistentClass not found
Consult the following stack trace for details.
com.sun.tools.javac.code.Symbol$CompletionFailure: class file for error.NonExistentClass not found
1 error
When trying to use Dagger 2 along with Kotlin?josebalius
06/21/2017, 7:46 PMdiesieben07
06/22/2017, 9:40 AMsjthn
06/22/2017, 12:37 PMpackage maxindex
fun indexOfMax(a: IntArray): Int? {
if (a.isEmpty())
return null
return a.indexOf(a.max()!!)
}
I am getting all tests passed except testIndexOfMaximum6
and testIndexOfMaximum7
. I can't find the bug. Pls helpdalexander
06/22/2017, 6:48 PMjosebalius
06/22/2017, 6:56 PMwhen
with strings? Whenever i try using when with a string i get an error:
>>> val test = "Hello"
>>> val test2 = test.replace("lo", "1")
>>> println(test2)
Hel1
>>> when(test2) { 'Hel1' -> println("Hello world") }
error: incompatible types: Char and String
when(test2) { 'Hel1' -> println("Hello world") }
^
tipsy
06/23/2017, 5:19 PMclass EmbeddedJettyFactory(jettyServer: () -> Server) : EmbeddedServerFactory {
private var server = Server(QueuedThreadPool(200, 8, 60000))
init {
this.server = jettyServer.invoke()
}
}
thuanle
06/26/2017, 8:59 AMkarelpeeters
06/27/2017, 8:01 AMtapchicoma
06/27/2017, 12:46 PMjoelpedraza
06/27/2017, 2:24 PMcasablancais
06/27/2017, 2:36 PMkevmoturi
06/27/2017, 3:54 PMtulio
06/27/2017, 7:46 PMskennedy
06/27/2017, 7:47 PMhonghai85592
06/29/2017, 6:23 AMmarstran
06/29/2017, 2:22 PMthemodz01
06/29/2017, 10:22 PMdasz
06/30/2017, 9:37 AMrecyclerView
does not use its adapter - no run getItemCount
layoutManager
properly set in onViewCreated
any ideas?dumptruckman
06/30/2017, 3:13 PMvararg args: Any?
mean that args is nullable or that null can be accepted as a var argdumptruckman
06/30/2017, 3:13 PMvararg args: Any?
mean that args is nullable or that null can be accepted as a var argagomez
06/30/2017, 3:16 PMdumptruckman
06/30/2017, 3:17 PMagomez
06/30/2017, 3:17 PMdumptruckman
06/30/2017, 3:18 PMargs = null
?agomez
06/30/2017, 3:23 PMfun test(vararg args: Any?) {
println(args.size)
}
fun main(args: Array<String>) {
test(args = null)
}
dumptruckman
06/30/2017, 3:25 PM