Menu
Question Index
...

Write a program to append the string to the stringbuffer object.

Input (StringBuffer, String) Output (String)
'All is well ', '123' 'All is well 123'
'mobile has camera ', 'true' 'mobile has camera true'
'song is good', '1' 'song is good1'



class StringBufferAppend
{
    public static void main(String s[])
    {
        StringBuffer sb = new StringBuffer("All is well ");
        String str = "true";
        System.out.println("After appending  the string to the given StringBuffer object is : " + getResultantString(sb, str));

    }


    public static String getResultantString(StringBuffer input, String str) {
    }

}

Doubts

Problems

Topic: Java append() Method In StringBuffer

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App