Menu
Question Index
...

Write a program to find the value of the character at the given location of stringbuffer object.

Input (StringBuffer, Integer) Output (Integer)
'facebook', 5 111
'gmail', 2 97
'google', 0 103



class CodePointAtStringBuffer
{
    public static void main(String s[])
    {
        StringBuffer sb = new StringBuffer("facebook");
        int location = 5;
        System.out.println("Specified value of the character at the given location of stringbuffer object is : " + getCharacterValue(sb, location));

    }


    public static int getCharacterValue(StringBuffer input, int location) {
    }

}

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