{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

using string data.jpeg - [lode Example[lava String str...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: [lode Example [lava] String str = "George Washington"; int strLongth = str.longth(); ifstrLongth would {Ibo 1? linote: length{) {Xis a function String substr = str.substring(7, 11); ffsubstr would be ff"wash” f!note: 11 means stop ffindox String caps = str.toUpperCase(); {Kcaps would be IX“GEDRGE NASHINGTDN” String lower = 5tr.toLowerCaso(); {flower would be fj"george washington” int pos str.index0f(‘o’); lfpos would be 1 int str.lastIndoxflf ‘o’ 'ffios would be S ...
View Full Document

{[ snackBarMessage ]}