Can I get the array values from middle or any fixed position. for example I have 1000 object in array and now I want to get 1 to 100 and 100 to 200 and so on till 900 to 1000 without loop.
Asked
Active
Viewed 72 times
0
-
do you want to store them elsewhere or just access them from array? – karan Jan 16 '19 at 11:37
-
Use "chunks" :) see for example https://stackoverflow.com/questions/27857011/how-to-split-a-string-array-into-small-chunk-arrays-in-java – ares777 Jan 16 '19 at 11:38
-
@KaranMer i just want to access – Imran khan Jan 16 '19 at 12:11