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.
Tantalum wires were those used first for light bulbs (now tungsten is preferred). The metal is immune to body liquids and the body tolerates the metal well. Therefore, tantalum has widespread use for surgical use. For instance, it can be used in sutures and as cranial repair plates. The metal is used in the electronics industry for capacitors. The oxide is used to make special glass with a high index of refraction for camera lenses.