I need to insert a cent character, how can I do it:
JOptionPane.showInputDialog("Please choose the number of cents,
"should be the symbol of cents");
There should be method with char
.
I need to insert a cent character, how can I do it:
JOptionPane.showInputDialog("Please choose the number of cents,
"should be the symbol of cents");
There should be method with char
.
Java supports Unicode source file:
JOptionPane.showInputDialog("Please choose the number of ¢: ");
should work!
Java supports Unicode out of the box. Just insert ¢
into the string literal. If that doesn't work, try \u00A2
.
You are right there is a special command that you can use, I guess it is 169...But Java accepts almost any special characters, so you may simply find it online and copy paste