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)  );
}
}

Popular posts from this blog

Simple Sign up design. Android.

Cart page design in android.

Set Date on jDateChooser and retrieve record from database.