Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ArrayList.removeRange()

YoungWinstonFeb 24 2011 — edited Feb 24 2011
Very quick question. Does anyone know why ArrayList.removeRange() is protected? I've checked the documentation and the source, and I don't see any potential gotchas, either documented or in the code (which seems very straightforward).

It's no big deal, but it does seem mildly annoying to have to extend the class in order to make use of such a nice method.

Winston

Edited by: YoungWinston on Feb 24, 2011 11:33 AM
Oops. Meant to put this in 'Java Programming'. My apologies, moderators; feel free to move if you see fit.
This post has been answered by tschodt on Feb 24 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2011
Added on Feb 24 2011
6 comments
684 views