Brackets

in #ita2 years ago

class MicroBlog {

public String truncate(String input) {

    int input\_lgth= input.codePointCount(0, input.length());

    if (input\_lgth<=5){

        return input;

    } else {

        String output=input.substring(0, input.offsetByCodePoints(0, 5));

        return output;

    }

} 

}

Sort:  

Vai un attimo su Discord, ti ho scritto un chiarimento...

!PIZZA
!LUV 1

PIZZA!

$PIZZA slices delivered:
@mad-runner(2/5) tipped @drago18121996

Hello.

To confirm your authorship of the content, could you please mention Hive in a new entry in your Exercism blog?

Capture.PNG

https://exercism.org/profiles/Alegrosso

You can remove this mention, once we confirm the authorship.

Thank you.

More Info: Introducing Identity/Content Verification Reporting & Lookup0