DEV Community

loading...

Discussion on: Daily Challenge #1 - String Peeler

Collapse
akash746 profile image
Akash Deep

Java:

someString.length()<=2?someString:someString.substring(1,someString.length()-1)

Forem Open with the Forem app