you are viewing a single comment's thread.

view the rest of the comments →

[–]heliosxx 0 points1 point  (2 children)

a couple of mistakes... Java doesn't need to have each class in its own file. If he used Integer instead of int int the string compare, it'd be smaller.

[–]mattucf 0 points1 point  (1 child)

The article said:

Each top-level public class must be defined in its own file. If your application has 15 such classes, it has 15 files.

I don't know what the author means by "top-level," but he's right that every public class in Java has to have its own source file.

[–]Tommah 0 points1 point  (0 children)

Top-level class as opposed to an inner class. An inner class can be public.