wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes casting string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "casting string " Watch "casting string " New topic
Author

casting string

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238



Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14115
    
  16

Mathew Lee wrote:I expected to see some weird stuff inplace of u but saw output as Username object is : asdf

Can you explain why you expected to see "some weird stuff"? What kind of "weird stuff"?

Please ShowSomeEffort


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: casting string