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.
1 This is the type of alum that you find in the grocery store for pickling and in baking powder. 2  It is also used in leather tanning, as a flocculant in water purification, as an ingredient in aftershave and as a treatment to fireproof textiles.3  It's chemical formula is KAl(SO 4) 2.otassium alum is used most often, although ammonium alum, ferric alum and soda alum may be used for many of the same purposes. 1  purification of drinking water as a chemical flocculant. 2  in styptic pencil to stop bleeding from minor cuts. 3  adjuvant in vaccines (chemical that enhances immune response).