我需要插入一个分的性格,我怎么能做到这一点:如何插入特殊字符?
JOptionPane.showInputDialog("Please choose the number of cents,
"should be the symbol of cents");
应该有法char
。
我需要插入一个分的性格,我怎么能做到这一点:如何插入特殊字符?
JOptionPane.showInputDialog("Please choose the number of cents,
"should be the symbol of cents");
应该有法char
。
的Java支持Unicode源文件:
JOptionPane.showInputDialog("Please choose the number of ¢: ");
应该努力!
你说得有一个特殊的命令,你可以用,我想这是169 ......但Java接受几乎任何特殊字符,所以你可以简单地在网上找到它,并复制粘贴
我该如何键入它,是否有任何charGetSymbol(198)...命令? – Buras 2013-03-24 07:36:40
这取决于您的操作系统,键盘等。更简单的办法是找到一个例子并剪切粘贴它。 – 2013-03-24 08:15:52