public class Strings
extends java.lang.Object
Constructor and Description |
---|
Strings() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
substring(java.lang.String s,
int index)
Returns the String before the given index.
|
static java.lang.String |
substringAfter(java.lang.String s,
int index)
Returns the String after the given index.
|
static java.lang.String |
substringAfter(java.lang.String s,
java.lang.String toFind)
Returns the String after the given String.
|
static java.lang.String |
substringBefore(java.lang.String s,
java.lang.String toFind)
Returns the String before the given String.
|
static java.lang.String |
toLowerCase(java.lang.String s)
Converts the String into lowercase.
|
static java.lang.String |
toUpperCase(java.lang.String s)
Converts the String into uppercase.
|
public static java.lang.String substringBefore(java.lang.String s, java.lang.String toFind)
s
- The StringtoFind
- The String to find in the given String.public static java.lang.String substring(java.lang.String s, int index)
s
- The Stringindex
- The postion to cut the Stringpublic static java.lang.String substringAfter(java.lang.String s, java.lang.String toFind)
s
- The StringtoFind
- The String to find in the given String.public static java.lang.String substringAfter(java.lang.String s, int index)
s
- The Stringindex
- The postion to cut the Stringpublic static java.lang.String toUpperCase(java.lang.String s)
s
- The string to convert.public static java.lang.String toLowerCase(java.lang.String s)
s
- The string to convert.