This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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.