Results 1 to 5 of 5
Thread: Converting object to string
- 02-11-2008, 12:27 PM #1
Member
- Join Date
- Jan 2008
- Posts
- 83
- Rep Power
- 0
- 02-11-2008, 02:38 PM #2
Member
- Join Date
- Dec 2007
- Posts
- 21
- Rep Power
- 0
what do you mean by arrayObject?
probably this will work ?
string = (String) arrayObject;
- 02-12-2008, 01:06 AM #3
Member
- Join Date
- Jan 2008
- Posts
- 20
- Rep Power
- 0
You mean an object in an Array?
If so, as hey pointed out, cast the value to String. (Note: All values in Array and other collection classes are stored as objects. So when you retrieve them you need to cast them back to their original type)
Hope this helpsSincerely, Your friends at www.javaadvice.com
- 02-15-2008, 04:13 AM #4
Member
- Join Date
- Feb 2008
- Posts
- 3
- Rep Power
- 0
thank you for the help i am still trying to work on it .
- 06-14-2008, 03:29 AM #5
Member
- Join Date
- Jun 2008
- Posts
- 22
- Rep Power
- 0
Similar Threads
-
Object from String (calling method dynamically)
By Java Tip in forum Java TipReplies: 0Last Post: 02-16-2008, 09:22 PM -
Object from String
By Java Tip in forum Java TipReplies: 0Last Post: 02-16-2008, 09:20 PM -
Converting String to Double
By srini in forum New To JavaReplies: 1Last Post: 12-24-2007, 08:03 PM -
Converting Epoch to string Date
By amyedwards in forum New To JavaReplies: 3Last Post: 12-14-2007, 10:33 PM -
String vs Object
By Gilgamesh in forum New To JavaReplies: 1Last Post: 11-28-2007, 10:26 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks