{"id":2648,"date":"2017-11-17T18:28:14","date_gmt":"2017-11-17T18:28:14","guid":{"rendered":"http:\/\/webartdevelopers.com\/?p=2648"},"modified":"2017-11-17T18:28:14","modified_gmt":"2017-11-17T18:28:14","slug":"how-to-create-a-program-to-print-reverse-of-a-string-with-reverse-method-in-core-java","status":"publish","type":"post","link":"https:\/\/webartdevelopers.com\/blog\/how-to-create-a-program-to-print-reverse-of-a-string-with-reverse-method-in-core-java\/","title":{"rendered":"How to Create a Program to Print Reverse of a String With reverse() method in Core Java"},"content":{"rendered":"<p>In this tutorial how to create a program to print reverse of a string with reverse() method in Core Java\u00a0 is shown.<\/p>\n<p>Code:<\/p>\n<p>Rev.java<\/p>\n<p>class Rev<br \/>\n{<br \/>\npublic static void main(String args[])<br \/>\n{<br \/>\nStringBuffer s1=new StringBuffer(args[0]);<br \/>\ns1.reverse();<br \/>\nString s2=args[0];<br \/>\nSystem.out.println(&#8220;The reverse of &#8220;+s2+&#8221; is &#8220;+s1);<br \/>\n}<br \/>\n}<\/p>\n<p><a href=\"https:\/\/youtu.be\/Ch8hqIkfpf4\">https:\/\/youtu.be\/Ch8hqIkfpf4<\/a><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"In this tutorial how to create a program to print reverse of a string with reverse() method in Core Java\u00a0 is shown. Code: Rev.java class Rev { public static void main(String args) { StringBuffer s1=new StringBuffer(args); s1.reverse(); String s2=args; System.out.println(&#8220;The reverse of &#8220;+s2+&#8221; is &#8220;+s1); } }<!-- AddThis Advanced Settings generic via filter on get_the_excerpt -->","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[156],"tags":[157,163,165],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/2648"}],"collection":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/comments?post=2648"}],"version-history":[{"count":2,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/2648\/revisions"}],"predecessor-version":[{"id":2650,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/posts\/2648\/revisions\/2650"}],"wp:attachment":[{"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/media?parent=2648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/categories?post=2648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webartdevelopers.com\/blog\/wp-json\/wp\/v2\/tags?post=2648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}