> what is the difference between toString() and type casting a n Object
> to String
Try it. Three lines is all it takes:
Integer mynum = new Integer(4);
System.out.println(mynum.toString());
System.out.println((String) mynum);
> what is the difference between toString() and type casting a n Object
> to String
What was wrong with the answers you got in
http://groups.google.com/group/comp.lang.java.programmer/browse_thread/thread/1c
c7ccbaed58588f/d1e3851848fcafcd
Not enough spoon feeding?
/Thomas

Signature
The comp.lang.java.gui FAQ:
http://gd.tuwien.ac.at/faqs/faqs-hierarchy/comp/comp.lang.java.gui/
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq