This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I have taken a string value in some test code and found all the "\n" values in the string via the split method and created a string array (notes) for each split value. However now I am needing to breakup each string (notes) value to a 45 char max length and create a new string for each 45 char length or less for each string value until I get to end of that string value.
Any suggestions or direction would be greatly appreciated.
The following method should split each line into an array of String each 45 characters long (apart possibly from the last one). I haven't tested it, so you may need to play around with the array indexes and substring parameters a little.