public List<Player> route(String message, double[] destination) { List<Player> tempList = new ArrayList<Player>(); if (.....) return null; else { tempList.add(p1); tempList.add(p2); } return tempList }
myList.addall(route(........);
if(condition){ return new ArrayList<player>(); } </player>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)