class in the same package java code example Example: java within class and within package import java.util.Scanner