mirror of
https://codeberg.org/info-bw-wiki/bluej-birdwatching.git
synced 2025-12-09 06:48:38 +01:00
Erster Commit, Aufgaben und Tests
This commit is contained in:
commit
2cff7468ce
5 changed files with 204 additions and 0 deletions
48
Birdwatching.java
Normal file
48
Birdwatching.java
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
/**
|
||||
* Die Übungen dieser Klasse sind stark an die Vorlage "bird-watcher"
|
||||
* des Java-Tracks bei exercism.org angelehnt.
|
||||
*
|
||||
* https://github.com/exercism/java/tree/main/exercises/concept/bird-watcher
|
||||
*
|
||||
* Dieser Track steht unter einer MIT License:
|
||||
* https://github.com/exercism/java/blob/main/LICENSE
|
||||
*
|
||||
* Anpassungen fürs Wiki
|
||||
* @author Frank Schiebel
|
||||
* @version Oktober 2024
|
||||
*/
|
||||
public class Birdwatching
|
||||
{
|
||||
private int[] birdsPerDay;
|
||||
|
||||
public Birdwatching()
|
||||
{
|
||||
this.birdsPerDay = getNumbersOfLast7Days();
|
||||
}
|
||||
|
||||
public int[] getNumbersOfLast7Days() {
|
||||
throw new UnsupportedOperationException("Lösche diese Zeile und implementiere die Lösung zur Aufgabe!");
|
||||
|
||||
}
|
||||
|
||||
public int getToday() {
|
||||
throw new UnsupportedOperationException("Lösche diese Zeile und implementiere die Lösung zur Aufgabe!");
|
||||
}
|
||||
|
||||
public void incrementTodaysCount() {
|
||||
throw new UnsupportedOperationException("Lösche diese Zeile und implementiere die Lösung zur Aufgabe!");
|
||||
}
|
||||
|
||||
public boolean hasDayWithoutBirds() {
|
||||
throw new UnsupportedOperationException("Lösche diese Zeile und implementiere die Lösung zur Aufgabe!");
|
||||
}
|
||||
|
||||
public int getCountForFirstDays(int numberOfDays) {
|
||||
throw new UnsupportedOperationException("Lösche diese Zeile und implementiere die Lösung zur Aufgabe!");
|
||||
}
|
||||
|
||||
public int getBusyDays() {
|
||||
throw new UnsupportedOperationException("Lösche diese Zeile und implementiere die Lösung zur Aufgabe!");
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue