70
поиска исчерпаны.
if (found != null)
System.out.println ("Found: " + found);
else
System.out.println ("The contact was not
found.");
System.out.println ();
Sorting.selectionSort(friends);
test = new Contact ("Mario", "Guzman", "");
found = (Contact) Searching.binarySearch(friends,
test);
if (found != null)
System.out.println ("Found: " + found);
else
System.out.println ("The contact was not
found.");
} }
Java Framework Collection
Класс
ArrayList
Достарыңызбен бөлісу: