Answers for "split a string by spaces"

1

space seperator in string in java

String[] splitted = "peter,james,thomas".split(",");
Posted by: Guest on August-13-2020
0

split funtion in string on multiple spaces

String[] sArray = s.split("\\s{2,}");
Posted by: Guest on October-18-2020
-1

hwo to split string by spaces in java

String lineOfCurrencies = "USD JPY AUD SGD HKD CAD CHF GBP EURO INR";
String[] currencies = lineOfCurrencies.split(" ");
Posted by: Guest on November-23-2020

Code answers related to "split a string by spaces"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language