@@ -0,0 +1,546 @@
+import java.util.regex.Matcher;%0Aimport java.util.regex.Pattern;%0A%0Apublic class expression %7B%0A%09static String stringToMatch = %22your input%22;%0A%09static Pattern p = Pattern.compile(%22(%5C%5Cw)%5C%5C1+%22);%0A%09static Matcher m = p.matcher(stringToMatch);%0A%09public static void main(String %5B%5D args)%7B%0A%09%09if (m.find())%7B%0A%09%09%09System.out.println(%22The duplicate character that you made me find for you because you are to lazy to find it yourself is '%22 + m.group(1) + %22'.%22);%0A%09%09%7D%0A%09%09else%7B%0A%09%09%09System.out.println(%22There are no duplicate characters in the text you gave me.%22);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create expression.java