![]() | ![]() | ![]() | 4.4 Week 4 -- Unicode, Floating Point, ... |
'
\uXXXX
\b backspace
\f form feed
\n newline
\r return
\t tab
\\ backslash
\" double quote
\' single quote
d & f
instanceof operator van der Linden page 125
String with a sentence that has at least 6 words.
String.length method, determine the length of the string
in characters.
Objects. Each of these Objects
will be part of a linked list. So it will need a field for a character (char)
and a reference to the same type of object.
String.charAt to get the individual characters from the String.
While you do this, count the number of "words". "Words" will be indicated by the
transition from the beginning of the string to a non-blank, or the transition from a blank to
a non-blank.
null terminated. Place a reference to the start of each word in the array.
![]() | ![]() | ![]() | 4.4 Week 4 -- Unicode, Floating Point, ... |