Article View: borland.public.jbuilder.java.language
Article #7820Re: Format a String
From: Adrian
Date: Wed, 16 May 2001 22:34
Date: Wed, 16 May 2001 22:34
27 lines
1692 bytes
1692 bytes
Exactly what I was looking for thanks for your help. On Wed, 16 May 2001 08:38:33 +0200, Fredrik Skanberg <fredrik.skanberg@liber.se> wrote: >A correction: there is a class in the Java API that can do this. It's >called MessageFormat and could be found in the java.text package. But >the library at http://www.braju.com/ probably uses the same format you >asked about. > >/Fredrik > >Fredrik Skanberg wrote: >> >> There is no such class in the Java API. But you can download a sprintf() >> function here: http://www.braju.com/ >> >> /Fredrik >> >> Adrian wrote: >> > >> > Is there a specific Class that can be used to place values into a >> > String. >> > >> > ie >> > String s = "Hello %s how are you ?"; >> > String ns = FormatString (s, "Adrian"); // substitute %s for Adrian
Technical Details
Message-ID:
<3b02ffa7.1960829@forums.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b020032.21421141@forums.borland.com> <3B021B23.6C2E5F4F@liber.se> <3B022069.3BD3864C@liber.se>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,5539798795b74f52 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-16 15:40:06 PST From: nospam@anytime.com (Adrian) Newsgroups: borland.public.jbuilder.java.language Subject: Re: Format a String Date: Wed, 16 May 2001 22:34:03 GMT Reply-To: nospam@anytime.com Message-ID: <3b02ffa7.1960829@forums.borland.com> References: <3b020032.21421141@forums.borland.com> <3B021B23.6C2E5F4F@liber.se> <3B022069.3BD3864C@liber.se> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 203.52.53.130 X-Trace: dnews 990052387 203.52.53.130 (16 May 2001 15:33:07 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews