Monday 4 June 2012

concat Method of String


public class MyClass {
public static void main(String[] args) {
    String str1 = "harry";
    String str2 = "jerry";
    System.out.println(str1.concat(str2));
}   
}
 Output:
harryjerry

No comments:

Post a Comment

Note: only a member of this blog may post a comment.