I have an array list which when populated has a key and a value I want to know if there is a way of splitting it on repeating keys for example my current data is like this:
[RoleID_123.0, UserHandel_tom, Password_12345.0, prevPassword_null, userCaption_thomas, [email protected], RoleID_124.0, UserHandel_dave, Password_ghadf, prevPassword_sdfsd, userCaption_david, [email protected], RoleID_125.0, UserHandel_trevor, Password_tre, prevPassword_null, userCaption_trev, [email protected]]
I want it to come out more like this:
[RoleID_123.0, UserHandel_tom, Password_12345.0, prevPassword_null, userCaption_thomas, [email protected]]
[RoleID_124.0, UserHandel_dave, Password_ghadf, prevPassword_sdfsd, userCaption_david, [email protected]]
[RoleID_125.0, UserHandel_trevor, Password_tre, prevPassword_null, userCaption_trev, [email protected]]
Is there a way to split it on say role id or am I going about this the wrong way?
subListmethod is your friend !!.