A insert is a string representation of the char parameter into this sequence
b Replace the characters in the substring of this sequence are replaced with the characters in the given string A and B are all methods inside the StringBuilder class
C Split splits This string according to the match of the given regular expression
D EndsWith tests whether this string ends with the specified suffix
C,d is a method that belongs to the string class.
C Java-version, javac–version can view the JDK installation version. In a Windows system, the JDK must be installed before the Java environment can be used.
Instead, configure the JDK environment variables. Java_home is not required, using a java_home similar to a variable in the Java language, in the PATH environment variable,
You can get the absolute path of the bin folder through%java_home%\bin, but you can also write the absolute path directly in path as
C:\jdk1.7.0_75\bin to replace Java_home. So the answer is D.
Main () is a static method, where static variable A can be accessed directly in a static method, but non-static (normal) variable B cannot be accessed, so compilation errors
The variable declared by static is a class variable, also known as a static variable, which is part of a member variable and cannot be defined in a normal method
It is possible to use a one-dimensional array for data storage, and the loop array is not included in the last number 88 because of i<arr.length-1.
Count will add 1 when the array can be divisible by 2, so only 36 is added 1, the result is 1, and A is selected. If you want to output even numbers correctly
Number, to modify the code to i<=arr.length-1 or I<arr.length.
Examine the String class common methods of manipulating strings, public string substring (int beginindex, int endIndex) The first int is the starting index, corresponding to a string
The starting position in the number, the second is the cutoff index position, corresponding to the end position in string 1, the string length obtained is: endindex-beginindex;2,
Starting from Beginindex, to the end of the Endindex, starting with 0 numbers, which do not include characters from the endindex position. IndexOf (String str) returns the specified character
The index at the first occurrence of this string, so select a
This topic examines the definition and invocation of the parameter method, according to the program D
Because the parameter in the Text.add () method is two int, the argument is given a double type.
Analysis of test questions