private static String median(List<String> numberslist){
        String result = null;
        if(numberslist.size()%2==0){
            int middle = numberslist.size() / 2;
            int middleright = Integer.parseInt(numberslist.get(middle));
            int middleleft = Integer.parseInt(numberslist.get(middle - 1));

            result = Integer.toString((middleright + middleleft)/2);
        }else{
            result = numberslist.get(numberslist.size()/2);
        }
        return result;
    }