Ver código fonte

Fix variable's name

katmpatz 6 anos atrás
pai
commit
54b911c505

+ 3
- 3
exercises/poker/.meta/src/reference/java/Hand.java Ver arquivo

127
             return 300 + triplet + Collections.max(uniqueCards);
127
             return 300 + triplet + Collections.max(uniqueCards);
128
         }
128
         }
129
         if (rankCounts.equals(Arrays.asList(2, 2, 1))) {
129
         if (rankCounts.equals(Arrays.asList(2, 2, 1))) {
130
-            int ProductsOfFrequencyAndValue = 0;
130
+            int productsOfFrequencyAndValue = 0;
131
             for (Integer key : frequencyMap.keySet()) {
131
             for (Integer key : frequencyMap.keySet()) {
132
                 int frequencyKey = (int) key;
132
                 int frequencyKey = (int) key;
133
                 int frequencyValue = frequencyMap.get(key);
133
                 int frequencyValue = frequencyMap.get(key);
134
-                ProductsOfFrequencyAndValue += frequencyKey * frequencyValue;
134
+                productsOfFrequencyAndValue += frequencyKey * frequencyValue;
135
             }
135
             }
136
-            return 200 + ProductsOfFrequencyAndValue + 2 * Math.max(highestFrequency, iteratorOverFrequencies.next());
136
+            return 200 + productsOfFrequencyAndValue + 2 * Math.max(highestFrequency, iteratorOverFrequencies.next());
137
         }
137
         }
138
         if (rankCounts.equals(Arrays.asList(2, 1, 1, 1))) {
138
         if (rankCounts.equals(Arrays.asList(2, 1, 1, 1))) {
139
             return 100 + highestFrequency;
139
             return 100 + highestFrequency;