Add superscript in messageBox
Hi all,
I'm trying to add superscript in my messageBox. JOptionPane.showMessageDialog(mainFrame,"Error on "+(i+1)+"th line");
Depending on which line error occurs, I need to say like: 1st, 2nd, 3rd and so on. I just need to figure out how to append "st"/"nd" as superscript. Any help?
Thanks in advance.

