Friday, February 12, 2016

StringExample3

package StringInJava;

public class StringExample3 {

/**
* @param args
*/
public static void main(String[] args) {

String s = "bhanu";
//concat() method appends the string at the end
s.concat("Pratap");
System.out.println(s);

String s1 = "Test";
s1.concat("Test1");
System.out.println(s1);

String s2 = "run";
s2.concat("Test");
System.out.println(s2);
}

}

5 comments:

  1. Looking very good blog. I am so thankful to you and expecting more info on Core Java and please do keep sharing on...
    Thank you so much

    ReplyDelete
  2. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.

    Core Java Training in Electronic city

    ReplyDelete
  3. This is an awesome post.Really very informative and creative contents. These concept is a good way to enhance the knowledge.I like it and help me to development very well.Thank you for this brief explanation and very nice information.Well, got a good knowledge.

    Artificial Intelligence Course
    Java Course
    AWS Course
    Machine Learning Course
    Data Science Course
    DevOps Course

    ReplyDelete
  4. waoo your post is very helpful.
    This site is so amazing, This sites gives good knowledge of Oracle ,This is very helpful for me. Here all content so useful and helpful for beginner and experience both.

    ReplyDelete