خرید بک لینک

Vote count: 0

I love working with ArrayLists, since they are infinite(virtually) and all, and I was wondering, is there an implementation that goes in both directions? i.e, if you give it a negative index it still retus, the list just keeps going down past zero. Now I know that whole "out of bounds" exception, so I was thinking, it could just be a class that uses two separate lists, one "positive" and one "negative", to both avoid the exception and grant infinite numbers in either way. I guess what I am asking is, do you guys know of something like this that already exists? If not, what would be the best way to write an implementation of such a class?

asked 49 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 9 مرداد 1395 ساعت: 11:40

صفحه بندی