facebook - How To Print Out A <List>Reference object in java? -
i using spring social api create facebook application. using list<reference> friends = facebook.friendoperations().getfriends();
list of friends. want print out list when prints out
[org.springframework.social.facebook.api.reference@7606931d,
i have tried using
@override public string tostring() { return tostringbuilder.reflectiontostring(this); }
but still prints out references. there anyway print out need?
loop through list of references, , print each of them individually, this:
for (reference friend : friends) { system.out.println(friend.getname()); }
Comments
Post a Comment