String s="A random String to Reverse"; StringBuilder sb= new StringBuilder(s); System.out.println(sb .reverse()); this can be one without lyamda and strreams just create a object of String builder and pass the string and call .reverse()
Can u please code for to swap first and last character of the string
In my experience, the interviewer will always ask you to not use in built methods. Otherwise things become too easy
Hi Can you make program for this // How to Reverse String without change the place of Special Characters using java 8? String str1 = "Ab#cdefg@i"; // String output = "ig#fedcb@A";
Please... why not use something else than java 8? Like atleast 17 😮
@mythricn5614