writing a class(List) similar to that of StringTokenizer
Joined: Apr 26, 2007
I want to write a class in which a list which contains group of values say 15. i want to split according to the limit(given at the run time,for example if you give 5 as limit the result should be like this [ [0,1,2,3,4] , [5,6,7,8,9] , [10,11,12,13,14] ]. ) for this code i have done almost all the method such as hasNextList, nextList. at the moment i want to write a method for countList(). the thing is that i want to write the logic as similar to that of StringTkenizer.hereby i write down the code up to my knowledge.
so by this program i have done the hasNextList and nextList. the rest is countList. so please anyone help me as quick as possible.
Please use the CODE button to maintain indentation; your code is difficult to read otherwise.
We don't simply hand out answers like that; please show us what you plan to use for your methods.
You have >< somewhere; that must be a misspelling.