Skip the first item while iteration through List

java

Solution

Something like:

for (MyClass myObject : myList.subList(1, myList.size()) {
       myObject.doSomething();
}

though I think it might not work if your list doesn't have at least one item...

Problem

I need to skip the very first item iterating through the `List`. ``` for (MyClass myObject : myList) { myObject.doSomething(); } ```

Original source

Related problems