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
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