Scala Print Object Type

[Solved] Scala Print Object Type | Scala - Code Explorer | yomemimo.com
Question : scala print object type

Answered by : youssef-yammine

val number = 13;
println(number.getClass);
// output: int

Source : https://www.oreilly.com/library/view/scala-cookbook/9781449340292/ch06s04.html | Last Update : Tue, 13 Sep 22

Answers related to scala print object type

Code Explorer Popular Question For Scala