String str = "Hello"; //This will return true because string str starts with "He" str.startsWith("He");