|
-
Dec 11th, 2004, 08:33 AM
#1
Thread Starter
Frenzied Member
Shortcut or real syntax.
I have this book that uses this statement to print stuff at the command line:
I never can get this to compile. So I was wondering if the authors were just to lazy to add the System part, or is something up with my compiler.(which I seriously doubt)
Last edited by System_Error; Dec 12th, 2004 at 07:36 AM.
-
Dec 11th, 2004, 08:34 AM
#2
Thread Starter
Frenzied Member
Re: Shortcut or real syntax.
-
Dec 11th, 2004, 02:13 PM
#3
Re: Shortcut or real syntax.
Either they're too lazy or they have a out variable somewhere in the test class that they set to System.out. Or, since this is 1.5, they might have done a static import.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Dec 12th, 2004, 07:36 AM
#4
Thread Starter
Frenzied Member
Re: Shortcut or real syntax.
Thank you. Since they do this in some of their examples, and don't have any static imports, my guess is that they are too lazy. Pretty sad huh.
-
Dec 18th, 2004, 12:26 PM
#5
Thread Starter
Frenzied Member
Re: Shortcut or real syntax.
I finally figured out what they were doing. In one of their examples way later in the book, they have a (PrintStream out) as one of the paremeters for their constructors. Then they are just using out.println();
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|