scala> //#PS:63 scala> // Import ALL PACKAGE inside the package 'java.awt' scala> import java.awt._ import java.awt._ scala> // Import TYPE 'File' in package 'java.io' scala> import java.io.File import java.io.File scala> // Import ALL STATIC METHODS & FIELDS in Type 'File' scala> import java.io.File._ import java.io.File._ scala> // Import SPECIFIC TYPES in the package 'java.util' scala> import java.util.{List, HashMap} import java.util.{List, HashMap} scala> // Aliasing : Used frequently to avoid naming conflict b/w scala> // Java & Scala Types #PS:63 scala> import java.util.{ | List => JavaList, | HashMap => JavaHashMap | } import java.util.{List=>JavaList, HashMap=>JavaHashMap}
Import Example
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment