use a class from different package java code example Example: java within class and within package import java.util.Scanner