File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

casting string

Mathew Lee
Ranch Hand

Joined: Jun 08, 2009
Posts: 238

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15092

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 8 API documentation
I agree. Here's the link:
subject: casting string
It's not a secret anymore!