JavaAlgorithms
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

Algorithms

Random string algorithms Jun 17, 2013

Author:
Ian Kaplan, iank@bearcave.com

Definition at line 21 of file Algorithms.java.


Member Function Documentation

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

Return true of sub is a sub-string of str

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

Definition at line 62 of file Algorithms.java.

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

Reverse the order of characters in a string.

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

Definition at line 34 of file Algorithms.java.


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