If the two imported classes have the same name, you can just use the class name You can write the full name of the class up to the package.
private ClassName obj1 = null;
private com.yourpackage.second.ClassName obj2 = null;
This is an example.
© 2024 OneMinuteCode. All rights reserved.