Java Program For String Methods In Typescript