Arvutiteaduse instituut
  1. Kursused
  2. 2019/20 kevad
  3. Objektorienteeritud programmeerimine (Narva Kolledž) (LTAT.NR.003)
EN
Logi sisse

Objektorienteeritud programmeerimine (Narva Kolledž) 2019/20 kevad

  • Home
  • Materials
  • Grading
  • Java Glossary
  • Cheat sheet (S1-S6)
  • Source Example
  • Links

Chapter 2

Program Control Statements. Loops. Methods. Arrays.

Objectives:

After completing the session, you can:

  • explain the following terms: program control statements, loops, signature of a method, formal and actual parameters, types of methods, a return statement;
  • control program flow using if statements and nested if statements;
  • choose the appropriate repetition control statement for a given task and implement it in a program using while, do-while or for (nested) statements;
  • define simple static methods with formal parameters;
  • invoke static methods with actual parameters;
  • define methods with return value;
  • use method overloading;
  • describe the essence of arrays in programming;
  • declare a one- and multidimensional array;
  • declare, create, and initialize an one- and multidimensional array, using array initializer;
  • access array elements through indices;
  • simplify programming using the for each loops;
  • retrieve data from the command line and convert the data into an appropriate data type.

Topics

  • 2.1 Conditional statements
  • 2.2 Loops
  • Static methods (or class methods)
    • 2.3 Void method
    • 2.4 Value methods
    • 2.5 Overloading of methods
  • Arrays
    • 2.6 One-dimensional arrays
    • 2.7 Multidimensional arrays
  • 2.8 Command-line arguments
  • 2.9 Tasks

NB! Watch the video in youtube if you need the subtitles!

Alternative materials

  • in English:
    • H. Schildt.‎ Java - The Complete Reference: Chapters: 3 (arrays), 5, 7
    • A. B. Downey and C. Mayfield. Think Java: How to Think Like a Computer Scientist: Chapter 4, 6, 8
  • in Estonian: here
  • in Russian:
    • Г. Шилдт. Java 8. Полное руководство: Chapters: 3 (arrays), 5, 7
    • Videos 8- 10

  • Arvutiteaduse instituut
  • Loodus- ja täppisteaduste valdkond
  • Tartu Ülikool
Tehniliste probleemide või küsimuste korral kirjuta:

Kursuse sisu ja korralduslike küsimustega pöörduge kursuse korraldajate poole.
Õppematerjalide varalised autoriõigused kuuluvad Tartu Ülikoolile. Õppematerjalide kasutamine on lubatud autoriõiguse seaduses ettenähtud teose vaba kasutamise eesmärkidel ja tingimustel. Õppematerjalide kasutamisel on kasutaja kohustatud viitama õppematerjalide autorile.
Õppematerjalide kasutamine muudel eesmärkidel on lubatud ainult Tartu Ülikooli eelneval kirjalikul nõusolekul.
Courses’i keskkonna kasutustingimused