Programming Course for Beginners - ZedLX

The Easiest Online Computer Programming Course, for Free

The Type string [12/14]

The getter function .cut from type string accepts two arguments which specify the beginning and the end of the resulting string.

The getter functions .cuta, .after, .before, .cutb return the corresponding part of the string.

After running and analyzing the given program, add one more println statement that prints out the text 67890 by applying the getter function .cut on variable i.

After that, add one more println statement that prints out the text 23456789012 by applying the getter function .cutb on variable i.

After that, add one more println statement that prints out the text 23456789012 by applying the getter function .after on variable i.

After that, add one more println statement that prints out the small letter 'h' by applying the getter function .cut on variable s.

Loading...