CS 0401 Lecture Notes - Lecture 7: Empty String

54 views2 pages
26 Jan 2017
School
Course
Professor

Document Summary

Will produce a single variable in memory called arr. Null: value = blank, there is no address. The string is created, but it is empty and doesn"t carry a value. The evaluation of this expression: created a string object in memory and has. 1 important field: array of chars, and others: a . length method, a . substring method, etc. String s = : empty string- creates a full blown object, but the length of it is 0 can use s. length returns 0. Can do all operations except s. charat(0); - there is not a char no good! Can"t search the string, can"t s. substring, etc. but it is fully initialized. How do we know it also has to return a value: it"s on the right hand side of the assignment sign. Run program using loops find max and min from external file as efficiently as. Look as the number as they come in, and.

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