+ 1
Is there anything you can use to reverse the output?
example String x = "hello"; System.out.println(x); i want output to be : "olleh" sknaht!
4 Answers
+ 3
You can use this example: https://code.sololearn.com/c8yVgK1J6oML/#
+ 12
String x = "hello";
String reverse = new StringBuffer(x).reverse().toString();
System.out.print(reverse);
+ 1
thanks! im guessing these work with int also changing toString() to toInt()?