@Test public void testReverseString() throws Exception { Assert.assertEquals(reverseString("nfscan-receipt-donation"), "noitanod-tpiecer-nacsfn"); Assert.assertEquals(reverseString("ljkahsldkjfhalskjdhflasjd"), "djsalfhdjkslahfjkdlshakjl"); Assert.assertNotEquals(reverseString("ljkahsldkjfhalskjdhflasjd"), "nfscan-receipt-donation"); }
public static String reverseString(String str) { StringBuilder sb = new StringBuilder(str); sb.reverse(); return sb.toString(); }
StringUtils { public static String reverseString(String str) { StringBuilder sb = new StringBuilder(str); sb.reverse(); return sb.toString(); } }
StringUtils { public static String reverseString(String str) { StringBuilder sb = new StringBuilder(str); sb.reverse(); return sb.toString(); }  }
StringUtils { public static String reverseString(String str) { StringBuilder sb = new StringBuilder(str); sb.reverse(); return sb.toString(); }  static boolean isNumeric(String maybeNumeric); static boolean validateCNPJ(String CNPJ); static String reverseString(String str); static void appendVarArgs(StringBuilder sb, String... strings); static boolean validateElectronicTaxReceiptAccessKey(String accessKey); static String removeNonNumeric(String text); }
StringUtils { public static String reverseString(String str) { StringBuilder sb = new StringBuilder(str); sb.reverse(); return sb.toString(); }  static boolean isNumeric(String maybeNumeric); static boolean validateCNPJ(String CNPJ); static String reverseString(String str); static void appendVarArgs(StringBuilder sb, String... strings); static boolean validateElectronicTaxReceiptAccessKey(String accessKey); static String removeNonNumeric(String text);  }