How do you write a reverse string program in Java? java training in vizag (JNNC Technologies)

                                                    http://jnnctechnologies.com/


  1. import java. util. Scanner;
  2. public class ReverseString. {
  3. public static void main(String[] args) {
  4. System. out. println("Enter string to reverse:");
  5. Scanner read = new Scanner(System. in); String str = read. ...
  6. String reverse = "";
  7. for(int i = str. length() - 1; i >= 0; i--) {
  8. reverse = reverse + str. charAt(i); }





________________________________________________________________
This page is your source to download or update your existing Java Runtime Environment (JRE, JavaRuntime), also known as the Java plug-in (plugin), Java ...
______________________________________________________________________________



0 Comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();