Question d’entretien chez BlackRock

reverse a string in Java

Réponse à la question d'entretien

Utilisateur anonyme

21 sept. 2014

public class Reverse { public static void main(String[] args) { String str = “Reverse this string, please”; StringBuilder sb = new StringBuilder(str); sb.reverse(); System.out.println(sb); } }