how to remove range from vector...

hi frnds,

i have to delete bunch of record from vector for a specific range.

i use removeRange() from java.util.vector but it give following compile time error

removeRange() has protected access in java.utl.Vector and void type not allowed

so please anyone one tell me,how i can solve my problem and how this method is used in real application.

thanx in advance

regards,

pandev84

[428 byte] By [pandev84a] at [2007-11-27 6:08:43]
# 1
You can either create a subclass of Vector, thus giving you access to that method, or write a similar method yourself. Look at the source for Vector, it's not a big deal to write
georgemca at 2007-7-12 17:11:31 > top of Java-index,Core,Core APIs...
# 2
hello frnds,thanx for u r valuable advice.i try to do that.thanx and regards,PanDev84
pandev84a at 2007-7-12 17:11:31 > top of Java-index,Core,Core APIs...
# 3
vector.sublist(start, finish).clear();
ejpa at 2007-7-12 17:11:31 > top of Java-index,Core,Core APIs...
# 4
hello frnd,thanx alot for u r valuable help,Regards,pandev84
pandev84a at 2007-7-12 17:11:31 > top of Java-index,Core,Core APIs...