Java Reference
In-Depth Information
12. The Math class contains methods sqrt and pow to compute square roots and
powers.
13. A static method does not operate on an object.
14. A string is a sequence of characters. Strings are objects of the String class.
15. Strings can be concatenated, that is, put end to end to yield a new longer string.
String concatenation is denoted by the + operator.
16. Whenever one of the arguments of the + operator is a string, the other argument
is converted to a string.
17. If a string contains the digits of a number, you use the Integer.parseInt
or Double.parseDouble method to obtain the number value.
18. Use the substring method to extract a part of a string.
19. String positions are counted starting with 0 .
20. Use the Scanner class to read keyboard input in a console window.
FURTHER READING
1. http://www.unicode.org/ The web site of the Unicode consortium. It
contains character tables that show the Unicode values of characters from
many scripts.
170
171
CLASSES, OBJECTS, AND METHODS INTRODUCED IN THIS
CHAPTER
java.io.PrintStream
printf
java.lang.Double
parseDouble
java.lang.Integer
parseInt
toString
MAX_VALUE
MIN_VALUE
Search WWH ::




Custom Search