printf doesn't work for me.
- From: potteryglazefire@xxxxxxxxx
- Date: 29 Apr 2006 18:04:25 -0700
The Java code below works under a Solaris machine I have access to, but
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
.
- Follow-Ups:
- Re: printf doesn't work for me.
- From: Mishagam
- Re: printf doesn't work for me.
- Prev by Date: Re: JTable cell editing deselects row, workaround?
- Next by Date: Re: printf doesn't work for me.
- Previous by thread: More class path
- Next by thread: Re: printf doesn't work for me.
- Index(es):
Relevant Pages
|