Pergunta de entrevista da empresa Zensar Technologies

Write a code to reverse a string

Resposta da entrevista

Sigiloso

4 de out. de 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--; } }