🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #180

Formatting output problem

#180
From: isis
Date: Fri, 07 Apr 2006 12:54
21 lines
1604 bytes
having problem with Jbuilder Foundation 2005, servisepack 01, java jdk 
5.0_06 installed.
new java supports formating output (so I created project with java jdk 5)>

String.format(String str, Object args)

But when I type (example from ):
         i = 2;
        r = Math.sqrt(i);

        System.out.format("The square root of %d is %f.%n", i, r);

I cannot built the file / error ocurres>
  a.. "Root.java": cannot find symbol; symbol : method 
format(java.lang.String,int,double), location: class java.io.PrintStream at 
line 33, column 20
I really need formated output and this does not wotk. Is it necessary to set 
something to made it work? or write it in other way?
Any suggestions?

Thanks for any help 
Technical Details
Message-ID: <44366119@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,118f720d27eb6edb,start
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "isis" <l.hapalova@sh.cvut.cz>
Newsgroups: borland.public.jbuilder.java.language
Subject: Formatting output problem
Date: Fri, 7 Apr 2006 14:54:40 +0200
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 147.32.117.91
Message-ID: <44366119@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1144414489 147.32.117.91 (7 Apr 2006 05:54:49 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail