java packages example

Java
// import <package>			-> Imports the whole package
// import <package>.<class> -> Imports a certain class
import java.util.Scanner;
Source

Also in Java: