Hi,
I have a Java class that has a static method call that returns a Java Array List of users as follows:
public final class DAO {
public static List<User> getUsers() {
List<User> userList = new ArrayList<User>();
User user = new User("Mike");
userList.add(user);
return userList;
}
}
public class User {
private String name;
public User(String name) {
}
}
In a clojure project I'm not fully sure how to retrieve the call to the list of Users and just print out the name of the User I've created here Mike. I have searched online under the keywords "clojure java interop java.util.ArrayList", but I can only find examples where in clojure you create a new arraylist instance and do operations on this newly created list. How does clojure deal with an ArrayList that is being passed into clojure from java?
Thanks,
Adrian.