File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes getting the value of string array out of object array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "getting the value of string array out of object array" Watch "getting the value of string array out of object array" New topic
Author

getting the value of string array out of object array

jazy smith
Ranch Hand

Joined: Nov 18, 2009
Posts: 101
Hi all,

I have piece of code as mentioned below. I want to parse each string array value associated with each object array. (e.g. for obj[0], I need the first string value as "a" and second string value as "ap" ) How would I get them ?

Any idea ?

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Just cast an entry of that object array:
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19693
    
  20

Or use generics:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting the value of string array out of object array