public String remove(int num) { if (list.size() > 0) { return list.get(num).toString(); }else { return null; } num += -1; list.remove(num); }