Re: printf doesn't work for me.
- From: Mishagam <noemail@xxxxxxxxxxxx>
- Date: Sun, 30 Apr 2006 01:13:05 GMT
potteryglazefire@xxxxxxxxx wrote:
The Java code below works under a Solaris machine I have access to, butWhat version of Java / JVM you use on Fedora?
not Fedora Core 5. The
thing that's not working is "printf". I'm guessing I have a problem
with a library, but I'm not sure. I'm not well versed in Java, so, can
someone help me figure out how to get printf to work?
// Begin
public class PiTest
{
public static void main(String[] args)
{
double pi = Math.PI;
System.out.printf("pi = %5.3f%n", pi);
}
}
// End
Their default Java is GCJ. printf() is recent addition of Java 1.5. I will probably not work with GCJ and SUN Java versions < 1.5.
.
- Follow-Ups:
- Re: printf doesn't work for me.
- From: potteryglazefire
- Re: printf doesn't work for me.
- References:
- printf doesn't work for me.
- From: potteryglazefire
- printf doesn't work for me.
- Prev by Date: printf doesn't work for me.
- Next by Date: Re: printf doesn't work for me.
- Previous by thread: printf doesn't work for me.
- Next by thread: Re: printf doesn't work for me.
- Index(es):
Relevant Pages
|