Find the start of the substring Bart in the following string.

int position = elBarto.find("Bart");int position = elBarto.position("Bart");int position = elBarto.start("Bart");int position = elBarto.index("Bart");

Great! We use .find() on our string using the substring we are looking for as the argument to find the index it starts at.

Nice try but not quite! We use .find() on our string using the substring we are looking for as the argument to find the index it starts at.