Search:

Type: Posts; User: ddonn

Search: Search took 0.08 seconds.

  1. Replies
    2
    Views
    1,958

    Re: substring StringIndexOutOfBoundsException

    problem solved.
    When i changed length+1 where the substring is created to just length it works. Not too sure why. If anyone could enlighten, it would be helpful
  2. Replies
    2
    Views
    1,958

    substring StringIndexOutOfBoundsException

    Hi guys,

    I am trying to count the number of words in a sentence. My method of doing this is as follows;
    1.Accept a sentence from the user using System.in
    2.Scan the user input and store as a...
Results 1 to 2 of 2