CS 151 Lecture Notes - Lecture 7: Pseudorandom Number Generator, Printf Format String, Glider Competition Classes

103 views2 pages

Document Summary

Class library: set of classes that supports the development of programs, made up of several cluster of related classes (java apis (app. Java standard class library is organized into packages. Online java api documentation contains info about each class in the standard java api. To use classes from any other package besides java. lang, use an import declaration. Import declaration specifies packages and classes that will be used in a program so the fully qualified name is not necessary with each reference. Once import declaration is made, scanner is used to refer to that class in the program. Fully qualified names are necessary if two or more classes from two different packages have the same name. Another form of import declaration uses an * to indicate any class in the package might be used in the program (import java. util. All classes of the java. lang package are automatically imported for each program.

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