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;
}
}
}
Vai un attimo su Discord, ti ho scritto un chiarimento...
!PIZZA
!LUV 1
$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?
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
That is me.
The account is now also verified for Excercism.
Thank you
https://hivewatchers.com/verifications?utf8=%E2%9C%93&verification%5Busername_search%5D=drago18121996