• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wrapper class

 
Sun Craven
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why the following statement is incorrect?
Every wrapper has a public void toString(); method
Thanks
Sun Craven
 
Jart Bo
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sun,

Actually there is a method

public String toString()

for the wrapper classes. The return type void is wrong.
[ April 15, 2008: Message edited by: Jart Bo ]
 
Sun Craven
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Yeah .I C.Thank you Jart.
I am careless..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic