These are chat archives for JetBrains/kotlin

24th
Aug 2017
Ravi Teja
@tekjar
Aug 24 2017 13:47
Hi. How do I print array of bytes in kotlin?
fun main(args: Array<String>) {
    var b = "Hello World".toByteArray()
    println("$b")
}
I need binary representation
Tesla Ice Zhang
@ice1000
Aug 24 2017 14:03
Use what you use in Java
Phantom190
@Phantom190
Aug 24 2017 14:17
@ice1000 I don't think it's fair to assume everyone that is learning Kotlin knows Java.
I dont, I never bothered to learn Java due to it's uglyness.
Ravi Teja
@tekjar
Aug 24 2017 16:48
@ice1000 @Phantom190 Yep. Didn't use java much
Ravi Teja
@tekjar
Aug 24 2017 16:57
But found it. Thanks. Arrays.toString(mByteArray). And didn't find this elegant