Fiddle Freak Fiddle Freak - 11 months ago 66
Java Question

Print char of roman numeral for 10000

I've searched and cannot seem to find the unicode number relating to roman numerals for Java's unicode char.

Is there anyway to

System.out.print()
the following roman numerals?

enter image description here

Answer Source

You can use the unicode "\u0305" which is the combining overline. So for 5000, you can do System.out.println("V\u0305"). For 10000, System.out.println("X\u0305"), etc.