5. Provide yourself an example (not one from your instructor) of how you use a particular command that
will help jog your memory in the future when you need that command again. You must provide a little
code as well as a written explanation with this one.
System.out.print(s.length());
this method prints out the length of the string, it also counts spaces
System.out.print(s.substring(2));
this would take the letters in the string starting fromthe index of 2.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment