Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By monkeyjr97

Thread: question about adding space to an argument

  1. #1
    csanch11 is offline Member
    Join Date
    Oct 2013
    Rep Power

    Default question about adding space to an argument

    string first = "George"
    string second = "Washington"

    System.out.println(first + "V" + second)

    Will "V" create a space between George Washington?

  2. #2
    monkeyjr97 is offline Senior Member
    Join Date
    Nov 2012
    Rep Power

    Default Re: question about adding space to an argument

    no that will print:


    if you want to add a space between either user formatting like "\t" or just add a space either side of the V:

    Java Code:
    System.out.println(first + " V " + second);
    csanch11 likes this.

Similar Threads

  1. Quick Question (May be adding to this as i go)
    By cruelties in forum Eclipse
    Replies: 9
    Last Post: 12-25-2012, 12:04 AM
  2. Space Warrior - Multiplayer Space Shooter
    By stes in forum Reviews / Advertising
    Replies: 2
    Last Post: 01-11-2012, 08:19 AM
  3. Question about adding a method. Help!
    By Tullamore in forum New To Java
    Replies: 10
    Last Post: 11-05-2011, 05:56 PM
  4. Replies: 1
    Last Post: 06-07-2010, 07:10 AM
  5. Entering a space as argument
    By Arne Bjarne in forum Eclipse
    Replies: 1
    Last Post: 03-02-2009, 12:43 PM

Posting Permissions

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