+ 2
How to find the reverse of any number in java by looping method??
5 Antworten
+ 4
If you're lazy and performance doesn't matter, you can do this;
System.out.println(new StringBuilder(String.valueOf(input)).reverse());
+ 2
@Serena, Lol; oops, had forgotten that part 😅
+ 1
what's the use of '//reversing' here?