Menu
Question Index
...

Write a program to find the number of code points in the portion of the stringbuffer that are between start and end-1.

Input (StringBuffer, Integer, Integer) Output (Integer)
'core java', 1, 5 4
'informatica', 0, 9 9
'oracle', 1, 3 2



class StringBufferCodePointCount
{
    public static void main(String s[])
    {
        StringBuffer sb = new StringBuffer("core java");
        int start = 1;
        int end = 5;
        System.out.println("Number of code points in the portion of the stringbuffer that are between start and end-1 is : " + getCodePointCount(sb, start, end));

    }


    public static int getCodePointCount(StringBuffer sb, int start, int end) {
    }

}

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