posted 14 years ago
Welcome to JavaRanch!
Because that's the way it works--that might not be a particularly satisfying answer, that's just the way it is. The class file definition allows for only a single class per file. But for tightly-coupled classes it can make more sense on an organizational level to keep them in the same file, and you may not want to expose it directly for some reason.