how to use class from other package in java code example Example: java within class and within package import java.util.Scanner