String Index

A zero-based position used to locate a character in a String.

What is String Index in Java?

String Index — A zero-based position used to locate a character in a String.

class Location {
    String city = "Denver";
    int characterCount = city.length();
    char firstCharacter = city.charAt(0);
}

Level: Apprentice · More Java terms at this level

Updated

In other subjects