This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Please explain <String> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Please explain <String>" Watch "Please explain <String>" New topic

Please explain <String>

Jason Wylde
Ranch Hand

Joined: May 25, 2009
Posts: 30
I'm trying to find out what <String> does but I can't find documentation anywhere. I assume that it is used to cast to a String but I want to be sure.

Thanks In Advance
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63053

Hint: Generics

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jason Wylde
Ranch Hand

Joined: May 25, 2009
Posts: 30
Ahh ...I see !
Jarred Olson
Ranch Hand

Joined: Jul 31, 2009
Posts: 37
Parenthesis are what you would use to cast: (String)
I agree. Here's the link:
subject: Please explain <String>
It's not a secret anymore!