Answers for "how to split a string by multiple characters in java"

2

java split for multiple characters

String input = "Hi,X How-how are:any you?";
String[] parts = input.split("[\\W]");
Posted by: Guest on June-02-2020
0

split string 2 characters java

String str= "abcdef";

        String[] array=str.split("(?<=\\G.{2})");

        System.out.println(java.util.Arrays.toString(array));
Posted by: Guest on September-01-2020

Code answers related to "how to split a string by multiple characters in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language