This exercise focuses on working with one-dimensional and two-dimensional arrays in Java. The tasks include:
Dynamically increase the size of a one-dimensional array as new integers are entered from the console.
- Program:
ReadArray.java
Analyze population growth in Javaland by calculating year-over-year differences and identifying the maximum difference.
- Program:
JavalandPopulation.java
Read a two-dimensional array from a file and identify the 2x2 sub-matrix with the smallest sum.
- Program:
MinSquare.java
Validate construction rules for upper floor layouts in Javaland by comparing two 2D arrays (ground floor and first floor).
- Program:
HouseChecker.java
src/
In.javaHelper class for inputOut.javaHelper class for outputReadArray.javaTask 1: Expanding arraysJavalandPopulation.javaTask 2: Population growth analysisMinSquare.javaTask 3: Minimum 2x2 sub-matrixHouseChecker.javaTask 4: House construction validation
tests/
Testprotokolle.txtTest cases and results for all tasks
data/
numbers.txtInput file for Task 3ground.txtGround floor layout for Task 4first.txtFirst floor layout for Task 4
- Programming Language: Java
- Editor: Visual Studio Code with JavaWiz extension
This project is licensed under the MIT License.