What will be the value of str after the following statements are executed? (执行下列语句后,str的值将是多少?)StringBuilder str =new StringBuilder("We have lived in Chicago, " +"Trenton, and Atlanta."); str.replace(17, 24, "Tampa");
A. We have lived in Tampa, Trenton, and Atlanta.
B. We have lived in Chicago, Tampa, and Atlanta.
C. We have lived in Tampa Trenton, and Tampa.
D. We have lived in Tampalanta.
查看答案
Sometimes a string will contain a series of words or other items of data separated by spaces or other characters. In programming terms, items such as these are known as what?(有时,字符串将包含一系列单词或其他数据项,这些数据项由空格或其他字符分隔开来。在编程术语中,像这样的项目被称为什么?)
A. Tokens (符号)
B. Delimiters (分隔符)
C. Key characters (关键字符)
D. Lists (列表)
What is the term used for the character that separates tokens?(用于分隔符号的字符术语是什么?)
A. Tokenizer (分词器)
B. Delimiter (分隔符)
C. Whitespace (空格)
D. separator(分离器)
The process of breaking a string down into tokens is known as what? (将字符串分解为符号的过程称为什么?)
A. Tokenizing (标记化)
Buffering (缓冲)
C. Simplifying (简化)
D. Parsing (解析)
To use the StringTokenizer class you must have the following import statement.(要使用StringTokenizer类,必须具有以下哪个导入语句)
A. import java.util.StringTokenizer;
B. import java.util.String;
C. import java.StringTokenizer;
D. import java.String;