How do I import a class I wrote in a different file? All my classes are under the same package.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
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();