While you could do something like this, it would be extremely sub-optimal. Consider that the indexOf method would be iterating across the entire list (again!) to find the object. Note also that it depends on myObjList being an ordered collection (list):
List<myObj> myObjList = new ArrayList<myObj>();
for (myObj o : myObjList){
int idx = myObjList.indexOf(o);
for(myObj blah : myObjList.subList(idx, myObjList.size()) {
...
}
}
far better:
int myObjListSize = myObjList.size();
for (int outerIndex = 0; outerIndex < myObjListSize ; outerIndex++){
for(int innerIndex = outerIndex; innerIndex < myObjListSize ; innerIndex++) {
myObj o = myObjList.get(innerIndex);
}
}
other note: class myObj should be capitalized to class MyObj to adhere to Java naming standards