📜  hwo在java代码示例中按空格分割字符串

📅  最后修改于: 2022-03-11 14:52:27.534000             🧑  作者: Mango

代码示例1
String lineOfCurrencies = "USD JPY AUD SGD HKD CAD CHF GBP EURO INR";
String[] currencies = lineOfCurrencies.split(" ");