Commit a2e4a32a authored by 91pida1bif's avatar 91pida1bif
Browse files

Add Main Class

parent dcf7c0fa
......@@ -29,7 +29,7 @@ public class BinarySearch implements Search{
return Optional.empty();} // nichts gefunden
int mitte = (links + rechts)/2;
if(s[mitte].equals(key) ) {
return Optional(mitte);} // gefunden
return (mitte);} // gefunden
if(s[mitte].getKey().compareTo(key) > 0) {
return suche(s, key, links, mitte - 1);
}
......
package org.hft.dsa;
import model.Person;
import model.Reader;
public class Main {
public static void main(String[] args) {
Person[] personSortiert = Reader.getSortedSample();
Person[] personUnsortiert = Reader.getRawSample();
for (Person person : personUnsortiert) {
System.out.println(person);
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment