[Solved] Java formatting a arraylist
I tried to guess what exactly you’re trying to achieve. Assuming you’ve got an ArrayList containing Strings, the following code will probably do what you want to achieve (use the method updateList to change an ArrayList that looks like your first example into an ArrayList that looks like your second example): import java.util.ArrayList; import java.util.regex.Pattern; … Read more