if(size.endsWith("G")) {
if(size.endsWith("T")) { multiplier = T; size = size.substring(0, size.length() - 1); } else if(size.endsWith("G")) {
    public static long getSize(String size) {        if((size == null) || size.trim().equals(""))            return 0;                int multiplier = 1;             if(size.endsWith("G"))        {            multiplier = G;            size = size.substring(0, size.length() - 1);        }        else if(size.endsWith("M"))        {            multiplier = M;             size = size.substring(0, size.length() - 1);        }        else if(size.endsWith("K"))        {            multiplier = K;                      size = size.substring(0, size.length() - 1);        }            return Long.parseLong(size) * multiplier;    }