String Methods Flashcards

(9 cards)

1
Q

What string method can you use to find the characters between two indexes?

A

.substring(int start, int end)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What string method can you use to find the string from an index until the end?

A

.substring(int start)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What string method can you use to compare if two Strings are the same?

A

.equals(#)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What string method can you use to find the length of a string?

A

.length()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What string method can you use to compare the ASCII values?

A

.compareTo(#)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What string method returns the character at an index?

A

.charAt(int index)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What string method converts a string into integers?

A

Integer.parseInt(#)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do ASCII values work?

A

uppercase < lowercase
z > a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What string method converts an integer into string?

A

String.valueOf(#)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly