how to split string from space in java code example
Example 1: splitting by white space or multiple white spaces
$("#searchquery").text().split(/\s+/);
Example 2: hwo to split string by spaces in java
String lineOfCurrencies = "USD JPY AUD SGD HKD CAD CHF GBP EURO INR";
String[] currencies = lineOfCurrencies.split(" ");