Before session 2
Methods. Arrays.
Objectives:
When you finish this module, you will
- explain the following terms: signature of a method, formal and actual parameters, types of methods, a return statement;
- define simple static methods with formal parameters;
- invoke static methods with actual parameters;
- define methods with a return value;
- use method overloading;
- describe the essence of arrays in programming;
- declare a one- and multidimensional array reference variables and create arrays;
- declare, create, and initialize a one- and multidimensional array using an array initializer;
- access array elements using indexes;
- simplify programming using the for each loops;
- retrieve data from the command line and convert them into an appropriate data type.
Topics
- 2.1 Methods. Void method
- 2.2 Value methods
- 2.3 Overloading of methods
- 2.4 Arrays
- 2.5 Multidimensional arrays
- 2.6 Command-line arguments
- 2.7 Tasks
NB! Watch the video in youtube if you need the subtitles!
Alternative materials
- in English: Chapter 4, 6, 8
- in Estonian: here
- in Russian: Videos 8- 10