Install any skill in seconds. Free to start, no credit card required.
Get Started Free →lingxling/java
Language-specific super-code guidelines for java.
Passed 18 of 22 test cases with the skill, and 16 of 22 without it.
2 fixed16 passed either way4 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
Refactor this legacy Java 5 code block: `List<String> items = new ArrayList<String>(); for (int i = 0; i < items.size(); i++) { System.out.println(items.get(i)); }`
| Checked | Without skill | With skill |
|---|---|---|
| Uses the diamond operator for generic collection instantiation. | Passed | Passed |
| Replaces the indexed loop with an enhanced for-loop. | Missed | Passed |
The instructions your model reads when the skill loads.
// ❌ Imperative accumulation
List<String> result = new ArrayList<>();
for (Item item : items) {
if (item.isActive()) result.add(item.getName().toUpperCase());
}
// ✅
List<String> result = items.stream()
.filter(Item::isActive)
.map(item -> item.getName().toUpperCase())
.toList(); // Java 16+; use .collect(Collectors.toList()) before
// ❌ Manual grouping
Map<String, List<Item>> grouped = new HashMap<>();
for (Item item : items) {
grouped.computeIfAbsent(item.getCategory(), k -> new ArrayList<>()).add(item);
}
// ✅
test cases passed, vs 16 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.