Answers for "how to strip spaces in java using split with other delimiters"

-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
0

how to strip spaces in java using split with other delimiters

String[] splitted = input. trim(). split("\\s*,\\s*");
Posted by: Guest on April-16-2021

Code answers related to "how to strip spaces in java using split with other delimiters"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language