@@ -0,0 +1,472 @@
+package leetcode;%0A%0A/**%0A * https://leetcode.com/problems/final-value-of-variable-after-performing-operations/%0A */%0Apublic class Problem2011 %7B%0A    public int finalValueAfterOperations(String%5B%5D operations) %7B%0A        int answer = 0;%0A        for (String operation : operations) %7B%0A            if (operation.equals(%22--X%22) %7C%7C operation.equals(%22X--%22)) %7B%0A                answer--;%0A            %7D else %7B%0A                answer++;%0A            %7D%0A        %7D%0A        return answer;%0A    %7D%0A%7D%0A

Solve problem 2011