Question d’entretien chez Zensar Technologies

Write a code to reverse a string

Réponse à la question d'entretien

Utilisateur anonyme

4 oct. 2017

//reverese the string public static void getReverseString(String text) { String reverseString = ""; int length = text.length(); while (length != 0) { System.out.print(text.charAt(length - 1)); length--; } }