By default sorting is in ascending order. Collections.sort(list); method sort the list items in ascending order. Collections.reverse(list); method sort the list items in descending order. Same as you can sort the arrays also, Let refer the below code snippet, which sort the string array contains name of cities.orting using Comparator. Let have look to sort Employee list using implementation of Comparator interface. If you want to sort object other than their natural ordering at that time we use Comparator.
Thallium is a soft, malleable gray metal that was previously widely used in rat poisons and insecticides. Thallium itself and compounds containing the element are highly toxic. It is particularly dangerous because compounds containing thallium are colorless, odorless, and tasteless.hallium is a soft, malleable gray metal that was previously widely used in rat poisons and insecticides. Thallium itself and compounds containing the element are highly toxic. It is particularly dangerous because compounds containing thallium are colorless, odorless, and tasteless.
Naturally-occurring thallium is composed of two stable isotopes, thallium-203 and -205. 23 radioactive isotopes have also been been synthesized.he Thallium atom has a radius of 170.pm and its Van der Waals radius is 196.pm. In its elemental form, CAS 7440-28-0, thallium has a silvery white appearance. Thallium was first discovered by Sir William Crookes in 1861 and gets its name from the Greek word thallos which means twig or green shoot.