Skip to content

Glossary: Java Basics

String methods (strip, substring, indexOf, split)

Also written: strip, substring, indexOf, charAt, split, isBlank, toUpperCase, toLowerCase

Methods called on a string with a dot: `strip` trims spaces, `substring` cuts out a part, `indexOf` finds where text starts, and `split` cuts a string into an array of pieces.

Where the book teaches it

Related terms

StringIndex