Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: what is System,out,println in System.out.println()?

  1. #1
    Junior Member
    Join Date
    Apr 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default what is System,out,println in System.out.println()?

    what is System,out,println in System.out.println()?


  2. #2
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Re: what is System,out,println in System.out.println()?

    System is the class that references the computer System information (not, sure how to explain it, check out the API: System (Java Platform SE 6)). System.out returns a PrintStream of the System's standard output stream (in most cases, this is the command prompt). And the println is the PrintStream.println() method that you are invoking on the PrintStream object returned by the System.out call (here is the PrintStream API: PrintStream (Java Platform SE 6)).
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/

  3. #3
    Grand Poobah
    Join Date
    Mar 2011
    Posts
    1,545
    My Mood
    Grumpy
    Thanks
    0
    Thanked 167 Times in 158 Posts

    Default Re: what is System,out,println in System.out.println()?

    Quote Originally Posted by aussiemcgr View Post
    System.out returns a PrintStream
    Just to clarify, out is a static variable in the System class. It references a PrintStream object. Saying it returns something is a little misleading.

  4. The Following User Says Thank You to Junky For This Useful Post:

    Json (April 19th, 2011)

Similar Threads

  1. How to modify System.out.println()
    By emailkia in forum Java Theory & Questions
    Replies: 6
    Last Post: April 25th, 2011, 12:40 AM
  2. System.out.println ("Hellow");
    By OnionzRingz in forum Member Introductions
    Replies: 1
    Last Post: March 1st, 2011, 05:56 PM
  3. System.out.println("Hi!");
    By 342-173=147 in forum Member Introductions
    Replies: 1
    Last Post: February 27th, 2011, 03:07 PM
  4. How can i print rows 1 by 1 using System.out.println?
    By noFear in forum Java Theory & Questions
    Replies: 2
    Last Post: August 26th, 2010, 07:35 AM
  5. System.out.println ("Hello world!")
    By ShaunB in forum Member Introductions
    Replies: 0
    Last Post: December 29th, 2009, 05:17 PM