Class MyStringOp

java.lang.Object
  extended byMyStringOp

public class MyStringOp
extends java.lang.Object

Additional string operations


Constructor Summary
MyStringOp()
           
 
Method Summary
static int indexOfDigit(java.lang.String s)
          Returns the index within this string of the first occurrence of the numeric character.
static int indexOfDigit(java.lang.String s, int start)
          Returns the index within this string of the first occurrence of the numeric character starting the search at the specified index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyStringOp

public MyStringOp()
Method Detail

indexOfDigit

public static int indexOfDigit(java.lang.String s)
Returns the index within this string of the first occurrence of the numeric character.

Parameters:
s - a String to search in.
Returns:
the index of the first occurrence of the numeric character in the String s, or s.lenth() -1 if the character does not occur.

indexOfDigit

public static int indexOfDigit(java.lang.String s,
                               int start)
Returns the index within this string of the first occurrence of the numeric character starting the search at the specified index.

Parameters:
s - a String to search in.
start - - the index to start the search from.
Returns:
the index of the first occurrence of the numeric character in the String s, or s.lenth() -1 if the character does not occur.