EEMI

Guided Notes

Strings & Math

String methods, concatenation, special characters, StringBuilder, and the Math class.

Strings

Slide 1 / 5

A String holds text in double quotes: String name = "Ada Lovelace";

Strings are objects with methods: name.length() → 12 name.toUpperCase() → "ADA LOVELACE" name.indexOf("Love") → 4 name.charAt(0) → 'A' name.substring(4) → "Lovelace" name.contains("Ada") → true

Strings are immutable — methods return a new String and never change the original.

← Variables, Types & Operators