Results 1 to 4 of 4
  1. #1
    the beginner is offline Member
    Join Date
    Jan 2011
    Posts
    21
    Rep Power
    0

    Default print out string name with the space :) between the first and last name

    i just have a question if somebody can tell me how can i print out a full name with spaces >> Damon Golatte << that is the name i want to print out with the space..

    i tried name = console.next() and it gives me an error.

    i hope somebody can help me out.

    appreciate y'all :)

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,993
    Rep Power
    9

    Default

    Take a look at the Scanner class. Google is your friend, but the API is a good place to start: Scanner (Java 2 Platform SE 5.0)
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    the beginner is offline Member
    Join Date
    Jan 2011
    Posts
    21
    Rep Power
    0

    Default

    im sorry to bother i got it ^^ thankz anywayz :)

  4. #4
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,798
    Rep Power
    7

    Default

    Quote Originally Posted by the beginner View Post
    it gives me an error.
    That provides zero information. In future you would want to include the EXACT error message you got and the relevant code.

Similar Threads

  1. how to repalce space with %20 in a string
    By Basit781 in forum CLDC and MIDP
    Replies: 4
    Last Post: 06-13-2012, 08:08 PM
  2. Replies: 7
    Last Post: 09-16-2010, 05:44 PM
  3. Java split string, the first char is a space
    By new_cyber in forum New To Java
    Replies: 8
    Last Post: 12-31-2009, 01:27 AM
  4. Replies: 0
    Last Post: 11-17-2009, 01:58 PM
  5. Print a blank space
    By susan in forum New To Java
    Replies: 2
    Last Post: 07-30-2007, 01:58 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
  •