Scala - Import all types in a package Code Example

The code for Import all types in a package

// We can import all types in a package, 
// using the underscore _ as a wildcard.

// Example:
import java.awt._ 
import java.io.File 
import java.io.File._ 
import java.util.{Map, HashMap} 
Code by IncludeHelp, on August 9, 2022 05:04

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.