Nora Posted January 25, 2016 Share Posted January 25, 2016 How to correctly put all positions for walking.walkPath((List<Position>)); Quote Link to comment Share on other sites More sharing options...
MassRS Posted January 25, 2016 Share Posted January 25, 2016 (edited) Here's an example: List<Position> path = Arrays.asList( new Position(3135, 3511, 0), new Position(3133, 3505, 0), new Position(3130, 3500, 0), new Position(3129, 3496, 0) ); getWalking().walkPath(path); Edited January 25, 2016 by massih 3 Quote Link to comment Share on other sites More sharing options...
Chris Posted January 25, 2016 Share Posted January 25, 2016 Create a Linklist <Position> to destroy = new LinkList <>(); Then add to the list your Position [] Quote Link to comment Share on other sites More sharing options...
Erke Posted January 25, 2016 Share Posted January 25, 2016 Guess you could use toArray too? path.toArray(new Position[]{}); Quote Link to comment Share on other sites More sharing options...
Acerd Posted January 25, 2016 Share Posted January 25, 2016 Position[] path = { fuck }; ? Quote Link to comment Share on other sites More sharing options...