/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.stream.Collectors;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		getList().forEach(System.out::println);
	}
	
	 static List<String[]> getList() {
        return Optional.ofNullable(getListAsObjectFromSomewhere())
            .map(listObject -> (List<String[]>)listObject)
            // return in reversed order
            .map(list -> list.stream().sorted(Comparator.reverseOrder()).collect(Collectors.toList()))
            .orElse(Collections.<String[]>emptyList());
    }
	
	static Object getListAsObjectFromSomewhere() {
		return List.of(new String[]{"1", "hi"}, new String[]{"2", "hello"});
	}
}