An interesting prob for all

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

  • : 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.

Howdy, Stranger!

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

Categories

In this Discussion