how to import another class in java

Java
CustomObject myObject = new CustomObject();
Source

Also in Java: