Jason's Notes
Pages
Home
Jun 3, 2015
[CS61B] Notes for class 4-Iteration and array
Declare arraies:
int[] a, b[];
//a is 1D array, b is 2D array
Constant:
"final" keyword: value that can never be changed.
BAD: if (month == 2)
GOOD: public final static int FEBRUARY = 2;
if (month == FEBRUARY)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment