An interesting prob for all - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

An interesting prob for all

saibabusaibabu Posts: 1Member
hello guys,
i want to display date i.e 08thJan2007 and output should be
08(superscript)thJan2007.
Superscript is similar to tag in html
i want to print 'th' little top-wards than regular text
that too only in JAVA(not using SWING or awt) nothing
a regular simple java
ex:
input is String
ouput should be String
can anyone help me

Thanx in advance

Comments

  • zibadianzibadian Posts: 6,349Member
    : hello guys,
    : i want to display date i.e 08thJan2007 and output should be
    : 08(superscript)thJan2007.
    : Superscript is similar to tag in html
    : i want to print 'th' little top-wards than regular text
    : that too only in JAVA(not using SWING or awt) nothing
    : a regular simple java
    : ex:
    : input is String
    : ouput should be String
    : can anyone help me
    :
    : Thanx in advance
    :
    Strings don't have any formatting, so inside a String that is impossible. If you refer to the console output, then again you have very little to no formatting of text. The only way might be to either find a character with the st, nd, and th as superscript, or create those characters.
Sign In or Register to comment.