3 ms·
Cool stats about Java. "import" is the most frequently used word. It looks like everything is already exist in Java, so just import all the things, some clue co
by macygray 10y ago
Cool stats about Java. "import" is the most frequently used word. It looks like everything is already exist in Java, so just import all the things, some clue code and you are done.
- gravypod 10y agoThen why isn't this the case for python. It's as equally as kitchen sink, right?
- the_duke 10y agoJava doesn't have syntax for importing more than one member of a package in one statement. Either you import a single member, or all with *. Combine that with IDEs that auto-create the import statement, and there you go.
- the_duke 10y agoI just remembered: also, each class in Java has to be in it's separate file. That might very well be the biggest factor.
- sleepychu 10y agoI think if you grouped the import statements by package the numbers would be similar but typically people import individual classes.
- masklinn 10y agoIn Python you usually import a module and use that as a symbol, or `from module import Symbol1, Symbol2, Symbol3`. Java doesn't have the former, and the latter requires an import per symbol (it also has the ability to import every symbol in a namespace, and so does Python, but that's usually discouraged)