Menu
Question Index
...

Write a program to appends a Unicode code point to the end of the stringbuffer object.

Input (StringBuffer, Integer) Output (String)
'Nagarjuna', 65 'NagarjunaA'
'Balakrishna', 110 'Balakrishnan'
'Pokiri', 49 'Pokiri1'



class StringBufferAppendCodePoint
{
    public static void main(String s[])
    {
        StringBuffer sb = new StringBuffer("Nagarjuna");
        int codepoint = 65;
        System.out.println("After appending Unicode code point to the end of the stringbuffer object is : " + getResultantString(sb, codepoint));

    }


    public static String getResultantString(StringBuffer input, int codepoint) {
    }

}

Doubts

Problems

Topic: Additional StringBuffer Methods In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App