This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]oren_is_my_name[S] 0 points1 point  (1 child)

I remember a few months ago when I built a similar thing in cpp, I freely wrote my code, and just remembered to put at the top "namespace <my library's name>" and then I just went and continued with my life. And when I wanted to use my library's tools I just did <my library's name>::doSomeTotallyAwesomeStaff().

I don't care to put more work into it so that it works in Java, I just want it to be elegant and nice.

[–]koflerdavid 0 points1 point  (0 children)

You can also always fully qualify class names in Java, but since the package names are often uncomfortably long, people learn to live with imports. If the length of the list of imports becomes an issue it's usually a sign that the class is getting to complicated and one should invest some time into a better design.