Jump to content
JasperReports Library 7.0 is now available ×

How to cast Object to array of String?


2005 IR Help

Recommended Posts

By: tanade - tanessawad

How to cast Object to array of String?

2004-03-23 22:11

I need to cast parameter java.lang.Object to Array of String for use in my report but i don't know how to do this.And if i cast it already how to use it.I can type like this "parameterName[0][1]".

Anyone please answer.Thank you very much

 

 

 

 

By: David Lim - aberrant80

RE: How to cast Object to array of String?

2004-03-23 23:18

(String[]) myObject

 

And you can't use parameterName[0][1]. That's C syntax. In java, it'll be parameterName[0].charAt(1)

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...