APCSA - Strings

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/4

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

5 Terms

1
New cards

int length();

Method that returns the number of characters in a string.

2
New cards

int indexOf(String part)

Method that returns the index of the first occurrence of the specified substring within a string, or -1 if not found. If it cannot find string part, it returns -1.

3
New cards

String substring(int part)

Method that returns a new string that is a substring of the original string, starting from the specified index until the ending.

4
New cards

String substring(int part, int end)

Method that returns a new string that is a substring of the original string, starting from the specified index and extending to, but not including, the specified ending index.

5
New cards

String to Upper/LowerCase()

Method that converts all characters in the string to uppercase or lowercase, respectively. TEMPORARILY