-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
bugSomething isn't workingSomething isn't workingslugNew or updated pattern snippet (category/slug.json)New or updated pattern snippet (category/slug.json)
Description
Category
collections
Pattern slug
sequenced-collections
Which code is affected?
Old code example
Type of issue
Code doesn't compile
Describe the issue
// Get last element
var last = list.get(list.size() - 1);
// Get first
var first = list.get(0);
// Reverse iteration: manualvar is not a valid keyword in java 8
Suggested fix
// Get last element
Object last = list.get(list.size() - 1);
// Get first
Object first = list.get(0);
// Reverse iteration: manual`JDK version tested
8
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingslugNew or updated pattern snippet (category/slug.json)New or updated pattern snippet (category/slug.json)