Java String Case Insert inverter(String string)

Here you can find the source of inverter(String string)

Description

inverter

License

Open Source License

Declaration

public static String inverter(String string) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String inverter(String string) {
        if (isEmpty(string)) {
            return null;
        }//from ww  w. j a va 2 s.c o m

        StringBuilder inverter = new StringBuilder();

        for (int i = string.length() - 1; i >= 0; i--) {
            inverter.append(string.charAt(i));
        }

        return inverter.toString();
    }

    public static boolean isEmpty(String string) {
        return string == null ? true : string.trim().length() > 0 ? false
                : true;
    }
}

Related

  1. invert(String s)
  2. invertCase(String line)
  3. invertCase(String str)
  4. invertDate(String sDate)
  5. inverter(String str)
  6. inverterString(String palavra)
  7. invertHostName(String hostNameIn)
  8. invertKanaCase(String result)
  9. invertString(String s)