From the book \'Programming in Scala\' by Martin Odersky:
Another useful container object is the tuple. Like lists, tuples are immutable, but unlike lis
Just a note. If you get the Class Name of the List element, somehow Scala knows the type. Type inference maybe?
scala> val l = List(1,2,3,"Adriano Avelar")
val l: List[Any] = List(1, 2, 3, Adriano Avelar)
scala> print(l(3).getClass.getSimpleName)
String
scala> print(l(2).getClass.getSimpleName)
Integer