@@ -0,0 +1,467 @@
+package leetcode;%0A%0A/**%0A * https://leetcode.com/problems/reverse-prefix-of-word/%0A */%0Apublic class Problem2000 %7B%0A    public String reversePrefix(String word, char ch) %7B%0A        for (int i = 0; i %3C word.length(); i++) %7B%0A            if (word.charAt(i) == ch) %7B%0A                String reversed = new StringBuilder(word.substring(0, i + 1)).reverse().toString();%0A                return reversed + word.substring(i + 1);%0A            %7D%0A        %7D%0A        return word;%0A    %7D%0A%7D%0A

Solve problem 2000