Here you can find the source of inverter(String str)
public static String inverter(String str)
//package com.java2s; //License from project: Open Source License public class Main { public static String inverter(String str) { return new StringBuilder(str).reverse().toString(); }//from w w w . j ava2 s .c o m }