CSC 110 Lecture Notes - Lecture 9: Substring

16 views1 pages

Document Summary

Interactive program: reads input from the console, asking the user to type input. Scanner: object that can read input from many sources. public class userinputexample. If more than one input is put in, a , tab, or new line must be put in for the system to recognize it. If you type in the wrong type of input, the system crashes. It is an object storing a sequence of characters, but does not need new in front of it. To access each character by itself, search for the characters index. indexof(str) : index of where the start of given string appears. Length(): number of characters in this string. charat: character at specified index. If you change uppercase, or substring, you must assign it to a new variable.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions