1

我有这个代码

     String [] currency = {"US Dollar", "Philippine Peso", "British Pound", "Japanese Yen", "Indian Rupee",
                                    "Syrian Pound"};
   char [] symbol = { '\u0024', '\u20B1', '\u00A3','\u00A5', '\u20AC'};

我希望输出具有这种格式:这是在 for 循环中:

System.out.println("\t\t"+ currency[i] + " ======> "+ symbol[i] + sell[i]

我希望输出显示货币符号,但它显示不同的字符。请帮忙

4

0 回答 0