String examples
class string7
{
public static void main(String args[])
{
String s = new String("Naveen");
System.out.println("character "+s.trim());
System.out.println("character "+s.toUpperCase() );
System.out.println("character "+s.toCharArray() );
System.out.println("character "+s.substring(1, 5) );
}
}