Search:

Type: Posts; User: mulligan252

Search: Search took 0.08 seconds.

  1. Replies
    4
    Views
    2,800

    Re: Reverse every pair of words in a string

    Its telling me out of bounds exception. I have been trying hours now to get this code working but no success. Can someone please suggest the way i should do it please.
  2. Replies
    4
    Views
    2,800

    Re: Reverse every pair of words in a string

    I tried this, but i am getting all sorts of errors. Could someone please suggest a better way if possible. Thanks.

    //

    public static String wordPairReverse(String source){

    StringTokenizer...
  3. Replies
    4
    Views
    2,800

    Reverse every pair of words in a string

    Hi, i am trying to create a method that will accept a string, it will then return a string with every pair of words in the first string reversed.

    For example, input string: " Hello this is a test...
Results 1 to 3 of 3