Home > Mobile >  Kotlin println output is not working?
Kotlin println output is not working?

Time:11-29

The way for the new study Kotlin,
 
System. The out. Printf (s.t oString ())
Println (name)

The Log output is not successful,
Through the I, e, d output can, why?

CodePudding user response:

You try the println (" $name name ")
Can see the output

CodePudding user response:

Kotlin can type conversion without the tostring

CodePudding user response:

The new project so no? Found a day can output, and can't remember, restart or
 
Println (obj: : class)

I/System. Out: class Java lang. String (Kotlin reflection is not available)

May need to restart the
  • Related