Just a quick question:
String input = "sam|y|rutgers";
String[] splitInput = input.split("|");
System.out.println(Arrays.toString(splitInput));
Output:
[, s, a, m, |, y, |, r, u, t, g, e, r, s]
I would like to split at the pipe characters to get [sam,y,rutgers]
Any idea what I'm doing wrong here?