He failed to prove to the teacher that this is his work, so he failed. Obviously it wasn't his work, it's mine. But that's secret. All this after two hours of struggling to get the code to actually run. (javac and java aren't that hard to use, come on...)