I created a List.java file in folder UtilityPack which contains this code
List.java
UtilityPack
package Utilities; public class List { private class
Use the complete name of the class to lauch your program :
java Utilities.List
But the folder name should also match the package name.