Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

MAC and system.out.printf    ??????

Thread view: 
butler.randy@gmail.com - 11 Apr 2007 12:25 GMT
Why do I get a compiler error when I use the following

system.out.printf("%d", number);

does printf work on the mac?
if not is there a way to use special formatting the output stream?

thanks for any help.
Andrew Thompson - 11 Apr 2007 13:04 GMT
Sub:  Re: MAC and system.out.printf ??????

Note that Mac. is not an acronym (so not all-caps)
and please fix that sticky '?' key.  One question
mark is enough.

>Why do I get a compiler error when I use the following

Because you have no idea what you are doing?
I would normally ask the poster to note the *exact*
error output that the compiler produces, but this one
is too obvious to need that.

>system.out.printf("%d", number);

D:\Test.java:4: package system does not exist
system.out.printf("%d", number);
     ^
1 error

That output was from a *Win.* based machine.

>does printf work on the mac?

Sure, you just need use the correct nomenclature
to refer to the System class, so that would be..

System.out.printf("%d", number);

Signature

Andrew Thompson
http://www.athompson.info/andrew/

butler.randy@gmail.com - 11 Apr 2007 13:19 GMT
> butler.ra...@gmail.com wrote:
>
[quoted text clipped - 31 lines]
>
> Message posted via JavaKB.comhttp://www.javakb.com/Uwe/Forums.aspx/java-general/200704/1

No need to hate it was a simple question.

the compiler error I'm getting is symbol not found
System.out.printf("%d", number);
                  ^
is this better ???

thanks
Lew - 11 Apr 2007 13:54 GMT
>> butler.ra...@gmail.com wrote:
>>
[quoted text clipped - 30 lines]
>
> No need to hate it was a simple question.

And Andrew gave you the simple answer, and some good advice which apparently
you choose to ignore.

> the compiler error I'm getting is symbol not found
> System.out.printf("%d", number);
>                    ^
> is this better ???

No, because you forgot to fix your sticky "?" key.  Maybe you need to replace
your keyboard.

Also, why ask the question again?  Andrew gave you the answer.

Signature

Lew

butler.randy@gmail.com - 11 Apr 2007 13:56 GMT
> butler.ra...@gmail.com wrote:
> >> butler.ra...@gmail.com wrote:
[quoted text clipped - 49 lines]
>
> - Show quoted text -

ok I think i fixed the key ?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.