Elementary and no so elementary Java algorithms
stringAlgorithms.Algorithms Class Reference

List of all members.

Static Public Member Functions

static String reverse (String str)
static boolean isSubstring (String sub, String str)

Detailed Description


Random string algorithms Jun 17, 2013

Ian Kaplan,

Definition at line 21 of file

Member Function Documentation

static boolean stringAlgorithms.Algorithms.isSubstring ( String  sub,
String  str 
) [static]

Return true of sub is a sub-string of str

subthe substring
strthe string
true if sub is a substring of str. If sub.equals(str) then the function will return true

Definition at line 62 of file

static String stringAlgorithms.Algorithms.reverse ( String  str) [static]

Reverse the order of characters in a string.

strthe input character sequence.
return a String object containing the characters of the input in reverse order.

Definition at line 34 of file

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables