Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
How to write the reverse of any string.
suppose the input is "This is a Book" the output will be-"kooB a si sihT"
1 ответ
+ 6
String text = new StringBuilder("This is a Book").reverse().toString();
StringBuffer instead StringBuilder also works.