This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 14074

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