static String reverse(String string){ //method 1 char[] stringAsByteArr = string.toCharArray(); //the initial string transformed into array of characters char[] result = new char[stringAsByteArr.length]; //the new array of characters in reverse order for (int i=0;i=0; i--) // System.out.print(try1[i]); // } //method3 //easy but i feel like cheating with this method :D // String testB = new StringBuilder("testing").reverse().toString();