Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
String[] myStrings = new String[ 2 ];
myStrings[ 0 ] = new String("A");
myStrings[ 1 ] = new String("A");
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
public class RemoveDoubletes {
public static void main(String[] args) {
String[] strA = { "A", "A", "A", "A", "B", "C", "C", "B" };
//Zwei Objekte sind inhaltlich gleich wenn ihre equals Methode true bzw. hashCode's identisch sind.
Set set = new HashSet(Arrays.asList(strA));
System.out.println(set);
//Ausgabe:
// [A, C, B]
}
}