String
string1 = 3N10:35, 4510:36, 3N10:35, 4510:36, 3N10:35, 4510:36, 3N10:35
after splitting it should be as below
"3N10:35, 4510:36, 3N10:35, 4510:36" -- length 34 chars
"3N10:35, 4510:36, 3N10:35-----------" -- length 34 char (appending with space at the end)
String
string2=3N10:35, 4511:36, 3N12:35, 4516:36, 3N19:35, 4521:36, 3N19:35, 3N19:18, 4522:31, 3N22:12
after splitting it should be as below
"3N10:35, 4511:36, 3N12:35, 4516:36" - length 34 chars
"3N19:35, 4521:36, 3N19:35, 3N19:18" - length 34 chars
"4522:31, 3N22:12------------------" - length 34 char (appending with space at the end)
how to achieve in Java