public Currency[] search(String token){
        ArrayList<Currency> list = new ArrayList<>();
        for (Currency currency : this){
            if (currency.getCode().equalsIgnoreCase(token))
                list.add(currency);
            else if (currency.getSymbol().equalsIgnoreCase(token))
                list.add(currency);
            else if (currency.getName().toLowerCase().contains(token.toLowerCase()));
                list.add(currency);
        }
        return list.toArray(new Currency[list.size()]);
    }