Unformatted text preview: • finding largest value, • finding smallest value, etc. • inserting a value at a position (and shifting other values) • deleting a value at a position (and shifting other values) • How to switch (swap) two values in an array • Using 1-D arrays with classes (as instance variables) and methods (as parameters and as return result) 2-Dimensional (2-D) Arrays • Declaring a 2-D array • Referencing and updating individual cell values using two subscripts • Using nested loops with 2-D arrays • Row-by-row processing • Column-by-column processing • Diagonal cell processing • Using 2-D arrays with classes (as instance variables) and methods (as parameters and as return result) Problem solving • Write a method that . .. (solve problem from description) • Here’s a class description and a sample of how it is used – write the code for the class (instance variables, constructor, methods). Review your assignments....
View Full Document
- Spring '07
- Subroutine, instance variables, array subscript number