• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

writing a class(List) similar to that of StringTokenizer

 
aruncs kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



[HENRY: Added Code Tags]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Beginners Forum.
For more information, please read this.
 
Campbell Ritchie
Sheriff
Posts: 51344
86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic