Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
What does the length() method do?
Think about what 'length' means.
How would you concatenate 'Java' and 'Programming'?
What operator do you use for string addition?
What method do you use to get the length of a string?
Think of measuring the size of something.
True or False: The method equals() compares two strings for matching case-sensitively.
Consider if uppercase and lowercase letters are treated the same.
Create a method that takes a string and returns true if the first and last characters are the same, otherwise false.
What method can you use to access specific characters in a string?
Write a function that takes two strings and returns a new string that is the first string concatenated with the second string reversed.
Consider how you can manipulate the second string before concatenation.
6 more questions in this section. Enroll free to practise them all.
Enroll free