Java Programs
Wednesday, January 22, 2014
Example of trim() method in java.
class TRIM
{
public static void main(String surat[])
{
String s=" MaHi ";
System.out.println(s);
System.out.println(s.trim());
}
}
Output:
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment