Saturday, 16 June 2012

String reverse pgm


String reverse pgm

package com.demo;

public class StringRev {
public static void main(String[] args) {
String name = "namratha";
System.out.println("before rev "+name);
String reverse = new StringBuffer(name).reverse().toString();
System.out.println("rev "+reverse);

}
}

No comments:

Post a Comment

Pass a HashMap from Angular Client to Spring boot API

This example is for the case where fileData is very huge and in json format   let map = new Map<string, string>()      map.set(this.ge...