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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 13863

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
I agree. Here's the link:
subject: casting string
Similar Threads
Copying from Vector to Array: any inbuilt java method available like List.addAll(Vector)
How is Vector's hasnext() & next() called implicitly ??
Not able to use two ports in RMI chat application
Sorting elements Comparator or Collection