Hi,
Trying Big Data and now I want to learn to cast variables.
Thanks
Hi,
Suppose you have an object of Graphics and you wan to cast it to Graphics2D then you can use following code:
g.asInstanceOf[Graphics2D];
Similarly you can apply this logic to all other classes in SCALA.
Thanks
Ads