If all of your classes are in the same package, you shouldn’t need to import them.
Simply instantiate the object like so:
CustomObject myObject = new CustomObject();
More Related Contents:
- How does Java decide when to import?
- What is the point of abstract classes, when you could just do an interface [duplicate]
- Convert structs in C++ to class in Java [closed]
- ArrayOutOfBoundsException Error?
- Java – class, get new array of objects
- error: illegal start of expression 1 error
- How do I resolve ClassNotFoundException?
- Why can outer Java classes access inner class private members?
- What are classes, references, and objects?
- Determine which JAR file a class is from
- How can a class have a member of its own type, isn’t this infinite recursion?
- The connection between ‘System.out.println()’ and ‘toString()’ in Java
- Import package.* vs import package.SpecificType [duplicate]
- Java – how to load different versions of the same class?
- Java import vs code performance
- Can I get all methods of a class?
- Suppress deprecated import warning in Java
- How to get the parent base class object super.getClass()
- Java: Class.this
- Any reason to clean up unused imports in Java, other than reducing clutter?
- How is import done in Java?
- Advantage of Local Classes Java
- Android Call a method from another class
- Cannot instantiate the type for class object (Java)
- Is the class loaded when its reference is declared?
- instanceof Vs getClass( )
- Why can’t a “Class” variable be passed to instanceof?
- Why can’t a top level class be static in Java?
- Determine whether .class file was compiled with debug info?
- Eclipse – Show generated class files