3 ms·
What do you mean? You can do both: - import com.package.foo.Bar -> use Bar.methodOfBar() in code - import static com.package.foo.Bar -> use methodOfBar() in c
by halfastack 8y ago
What do you mean? You can do both:
- import com.package.foo.Bar -> use Bar.methodOfBar() in code
- import static com.package.foo.Bar -> use methodOfBar() in code
What does "import com.package.foo.bar as bar" add? Other than some kind of aliasing, as in you import Bar, but alias it as Baz, so then you use Baz.methodOfBar() ..?
- kbsletten 8y agoI think he's saying: import java.util as jvutil; import com.betterlist as better; class Example { jvutil.List list = new better.List(); }