0

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.

coderoftheday
  • 1,852
  • 3
  • 6
  • 16

0 Answers0