Java Code Examples for org.apache.commons.lang3.StringUtils.reverse()

The following are Jave code examples for showing how to use reverse() of the org.apache.commons.lang3.StringUtils class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: NGB-master   File:   View Source Code Vote up 5 votes
 * Provides reverse complement operation on sequence string
 * @param sequence nucleotide sequence
 * @return reversed complement nucleotide sequence string
public static String reverseComplement(final String sequence) {
    char[] chars = sequence.toCharArray();
    char[] complementChars = new char[chars.length];
    for (int i = 0; i < chars.length; i++) {
        complementChars[i] = complement(chars[i]);

    return StringUtils.reverse(new String(complementChars));
Example 2
Project: vscrawler   File:   View Source Code Vote up 4 votes
protected String handleSingleStr(String input) {
    return StringUtils.reverse(input);