I've got a list of strings that look like this
String s = "Top-0001-V[5]"
and I need to switch the parts to this Pattern:
String sF = "0001-Top-V-[5]"
I already tried to split them at "-" and then adding them, but the problem is it's a really long line of code, is there a way of doing this in an easy way, or do i have to split it all the way up and add it back togehther?
Really long line of code?- how long? why so? why do you consider it too long?<1>-<2>-<3>[<4>], where<1>should be swapped with<2>and between<3>and[<4>]should be a-.