Domanda di colloquio di Magnaquest

Write a program in Java to reverse a string without any built-in functions

Risposta di colloquio

Anonimo

21 ago 2025

you can use StringBuilder and recursion to make the new string or using two pointers to change the positions of the char array and then converting back into string using new String(char_array)