Java Games: Flashcards, matching, concentration, and word search.

Chapter 06 Key Terms Review

Chapter 06 String Manipulation and More Controls

AB
Length propertystores an integer that represents the number of characters contained in the string
Trimused to remove one or more characters from a stringd then return a string with the appropriate characters removed
indexthe unique number assigned to each character in a string
Replace methodreturns a string with all occurences of a sequence of characters replaced with another sequence of characters
Mid statementreplaces a portion of a string with another string
Insert methodsreturn a string with the appropriate characters inserted
StartsWithreturns the Boolean value True when a specific sequence of characters occurs at the beginning and end, respectiely, of a string; otherwise, returns the Boolean value False
Contains methodreturns the Boolean value True when a specific sequence of characters appears in a string; otherwise, returns the Boolean False
IndexOf methodsearches a string for a subString, and returns the number -1 when the subString is not found in the string; otherwise, returns the index of the starting position of subString within string
Substring methodreturns characters from a string
word sort rulesused by String.Compare method when comparing strings; e.g. a number is considered less than a lowercase letter, which considered less than an uppercase letter, etc.
Like operatorallows you to use pattern-matching characters to determine whether one string is equal to another string
radio buttonallows you to limit the user to only one choice in a group of two or more related and mutually exclusive choices
default radio buttonthe radio button that is automatically selected when the interface first appears
Check boxesallow the user to select any number of choices from a group of one or more independent and nonexclusive choices

This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities