probier es mal mit compareto, und beschreibe mal was dein Programm machen muss
hier ein kleiner Auszug von String-Vergleichsfunktionen.
Zitat:
int compareTo(Object o)
Compares this String to another Object.
________________________________________
int compareTo(String anotherString)
Compares two strings lexicographically.
________________________________________
int compareToIgnoreCase(String str)
Compares two strings lexicographically, ignoring case considerations.
________________________________________
boolean contentEquals(StringBuffer sb)
Returns true if and only if this String represents the same sequence of characters as the specified StringBuffer.
________________________________________
boolean equals(Object anObject)
Compares this string to the specified object.
________________________________________
boolean equalsIgnoreCase(String anotherString)
Compares this String to another String, ignoring case considerations.
|
Noch ein Tipp wie du dir das lange Array sparen kannst:
du kannst gleich schreiben:
String [][]Gruppen = { {"Winf","Flo","Wolfgang","Markus"},
{"SCR","Wallner","Herzog","Konzel"}
};