Language Identifier Java code