Page 2 of 2 FirstFirst 12
Results 21 to 23 of 23
  1. #21
    javaman1 is offline Member
    Join Date
    Sep 2010
    Posts
    56
    Rep Power
    0

    Default

    I figured it out. I needed "s1 = reader.next();". That solved the problem. Thanks anyway though!

  2. #22
    erakhman is offline Member
    Join Date
    May 2010
    Posts
    14
    Rep Power
    0

    Default

    change your code :

    Java Code:
    s1 = reader.nextLine();
    to become :

    Java Code:
    s1 = reader.next();

  3. #23
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 7
    Last Post: 11-03-2009, 03:18 AM
  2. combine string[] into string like perl's join function
    By tekberg in forum Advanced Java
    Replies: 9
    Last Post: 02-23-2009, 02:05 PM
  3. Replies: 5
    Last Post: 01-11-2009, 11:12 AM
  4. Replies: 0
    Last Post: 11-20-2007, 05:59 PM
  5. Replies: 1
    Last Post: 08-03-2007, 11:52 AM

Tags for this Thread

Posting Permissions

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