Create Longestcommonprefix.java