Schreibe die statische Methode intArrayMinimum so, dass sie den kleinsten im übergebenen Array enthaltenen Integer-Wert zurückgibt.

Overview

In dieser Aufgabe wiederholst du an einem einfachen Beispiel die Verarbeitung von Arrays. Konkret geht es darum den kleinsten Wert in einem Array zu finden und zurück zu geben. Dazu musst du die im Starterpaket vorgegebene Methode intArrayMinimum implementieren. Dieser Methode wird ein Integer-Array values übergeben, das durchsucht werden soll.

Relevante Kursinhalte

  • Vorlesung aus Woche 5 zu Arrays
  • Vorlesung aus Woche 4 zu Kontrollstrukturen
You might also like...
A simple integer compression library in Java

JavaFastPFOR: A simple integer compression library in Java License This code is released under the Apache License Version 2.0 http://www.apache.org/li

Daniel Lemire 487 Dec 30, 2022
Fast integer compression in C using the StreamVByte codec

streamvbyte StreamVByte is a new integer compression technique that applies SIMD instructions (vectorization) to Google's Group Varint approach. The n

Daniel Lemire 281 Dec 27, 2022
this repo is probs gonna die cuz idk very much java but i will update it when i learn how to actually DO SHIT

pastegod.cc shitty rename of zihasz client base rn but as i learn java i will paste-i mean add modules ;) (23/9/2021) why is everyone starring and wat

null 9 Dec 9, 2022
Hier findet ihr Hilfe(falls ihr weiter nicht kommt) für die Programme in SEW

TGM-HIT-SEW Verfasser: Kacper Bohaczyk Datum: 22.04.2022 Einführung In diesem Ordner findet ihr alle von mir gemachten TGM/SEW Beispiele. Der Zweck di

Kacper Bohaczyk 14 Jun 18, 2022
Function allowing you to find duplicate in an array in linear time and constant space

Floyd's tortoise and hare Function allowing you to find duplicate in an array in linear time and constant space ! Floyd's method is a pretty amazing,

null 7 Mar 29, 2022
A gradle plugin generates resConfig & languages array from project res folder.

For Android application projects that accept user-submitted translations, the number of supported languages may be large and growing. When new languages are added, developers need to manually update resConfig (1) and language array xml/class (2). Manual means there could be human error.

Rikka apps 28 Nov 12, 2022
DCS 19 CO1212 - Array Operations Activity

Array Operations Download this two java files and implement the methods which are mentioned inside the class. Just use the basic things that I have ta

Dilshan Karunarathne 4 Apr 12, 2022