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

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.