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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -