🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Formatting output problem

#181
From: Lori M Olson [TeamB]
Date: Fri, 07 Apr 2006 14:49
48 lines
2388 bytes
isis wrote:
> 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 
> 
> 

Ok, if you say you chose JDK 5, I'll believe you.  But you also need to 
set your "target" JDK/JRE to JDK 5.  Because this code won't run on 
previous versions of the JDK.  Go back to your project properties and 
make sure you have also set your target JDK.

-- 

Regards,

Lori Olson [TeamB]

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
     http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
     http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
     http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID: <44367bfa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <44366119@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,118f720d27eb6edb
X-Google-Attributes: gidf74b3,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 07 Apr 2006 08:49:43 -0600
From: "Lori M Olson [TeamB]" <javadragon@techie.com>
User-Agent: Thunderbird 1.5 (Macintosh/20051201)
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Formatting output problem
References: <44366119@newsgroups.borland.com>
In-Reply-To: <44366119@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 142.179.182.172
Message-ID: <44367bfa$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1144421370 142.179.182.172 (7 Apr 2006 07:49:30 -0700)
Lines: 48
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail