rananabeel052
11/2/2018 - 5:30 AM

Split String

String test = "Ali X Akbar X Jamal X Anjum";
        String[] splitTest = test.split(" X ");
        System.out.print(Arrays.toString(splitTest));
        
        
        
String name = "Mississippi";
        String[] splitName = name.split("s");
        System.out.print(Arrays.toString(splitName));