CMSC433, Spring 2002 Programming Language Technology and Paradigms …
Short Description
Basic Java, continued. Alan Sussman. February 5, 2002. CMCS 433, Spring 2002 - Alan Sussman. 2. Administrivia. . Quiz returned today …
Website: www.cs.umd.edu | Filesize: 13kb
Content
CMSC 433, Alan Sussman, U. Maryland (via
Bill Pugh) 1
CMSC433, Spring 2002
Programming Language
Technology and Paradigms
Basic Java, continued
Alan Sussman
February 5, 2002
CMCS 433, Spring 2002 - Alan Sussman 2
Administrivia
?Quiz returned today
?Revised version of project posted
- clarify myCounter behavior
- specify wire/socket format for timestamps
- sample code for creating a scrolling text
window
?Account issues?
- change those passwords!
CMCS 433, Spring 2002 - Alan Sussman 3
Last time
?Java basics
- statements, expressions, operators
- values - primitive types and references to
objects
- object operations - assignment, equals(),
toString(), clone(), getClass(), instanceof, cast
- arrays
CMCS 433, Spring 2002 - Alan Sussman 4
Array declarations
?int[] A and int A[] have identical semantics
- declares A to be a variable containing a reference to an
array of ints
?int[] A[], B;
- A is a ref to an array of refs to arrays of ints
- B is a ref to an array of ints
?None of these allocate an array
?A = new int [10]; allocates an array of 10 ints,
and makes A be a reference…
Get the file Download here
Related Books:Related Searches: programming language technology, alan sussman, array declarations, java basics, object operations
Comments
Leave a Reply