Results 1 to 3 of 3

Thread: Differnc

  1. #1
    sciguy77 is offline Member
    Join Date
    Jan 2009
    Posts
    16
    Rep Power
    0

    Default Differnc

    Hi,

    I know this is a basic question, but I'll ask it anyway :). While reading, I noticed that the author sometimes used System.out.print("Blah") and at other times System.out.println("Blah"). What's the difference?

    Thanks!

    Oh, and sorry for the weird title! I accidently pressed enter! Whoopse...
    Last edited by sciguy77; 01-16-2009 at 05:46 AM.

  2. #2
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    742
    Rep Power
    6

    Default

    ...println is the same as ...print("\n").
    println adds a new line.
    print don't add any new line.

    create a program and try it out.

  3. #3
    sciguy77 is offline Member
    Join Date
    Jan 2009
    Posts
    16
    Rep Power
    0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •