Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

return value

 
kan ashok
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
public a.b.c.Hai getvalue()
{
return (a.b.c.Hai)anotherobject.getResult(this, "oye");
}
i want to print value of what getValue() returns. How can i print that value ?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would depend a bit on the implementation of your class, including the toString() method. Perhaps something like the following is what you're trying to figure out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic