File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
    Bookmark Topic Watch Topic
  • New Topic

ArrayList Method

 
Sundarajan Srinivasan
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
The method in the ArrayList (removeRange(int fromIndex,int toIndex)) has a protected access. How to use it??
 
Mohamed Sanaulla
Saloon Keeper
Pie
Posts: 3159
33
Google App Engine Java Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
You have got an answer here. Please use the same thread for further discussions related to this query.
 
Paul Clapham
Sheriff
Pie
Posts: 20187
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Well, since the method is protected, that means that only subclasses of ArrayList and classes in the same package as ArrayList (java.util) can access it, right?

And you can't create a class in the java.util package. So that, as you can see, leaves only one possibility.
 
Martin Vajsar
Sheriff
Pie
Posts: 3747
62
Chrome Netbeans IDE Oracle
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue the discussion in the aforementioned thread.
 
I agree. Here's the link: http://aspose.com/file-tools
    Bookmark Topic Watch Topic
  • New Topic