This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.Random; | |
public class Search { | |
public static void main(String[] args) { | |
int[] list = getRandomList(0, 10000, 10000); | |
int search = getRandom(0, 10000); | |
System.out.println("Gesucht: " + search); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Expressions { | |
public static void main(String[] args) { | |
/* Schreibe die folgenden Ausdrücke so um, dass jeweils ein korrektes | |
Ergebnis ausgegeben wird. Das erwartete Ergebnis findest du in den | |
jeweiligen Kommentaren. Die Ausdrücke, die abgeändert werden sollen, | |
sind mit einem Kommentar markiert. */ | |
// --------------------------------------------------------------------- | |
System.out.print("Aufgabe 5.1: "); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Bubblesort { | |
/** | |
* @param args the command line arguments | |
*/ | |
public static void main(String[] args) { | |
int[] numbers = {1, 5, 8, 13, 17, 5, 9, 16, 25, 8, 0, 1}; | |
int tmp; | |
for (int i = 1; i < numbers.length; i++) { |