Hassaan
08/15/2022, 9:39 AMJoffrey
08/15/2022, 9:42 AMnew String("hello")
would be String("hello")
, but I think Kotlin prevented this by not providing this constructor. Why would you want to do that, though?Sam
08/15/2022, 9:42 AMjava.lang.String("hello") as String
But don’t 😄Joffrey
08/15/2022, 9:43 AMString("hello".encodeToByteArray())
But don't 😄Hassaan
08/15/2022, 9:56 AM