Is there a way to splice a list created by .split in Java?
package com.company;
public class Main {
public static void Main(String[] args) {
String names = "BOB,DAN,JOHN,TIM";
System.out.println(names.split(",").subString(1,3));
}
}
I would like to print all but the first element.