4 Replies - 12052 Views - Last Post: 10 March 2009 - 04:05 PM Rate Topic: -----

#1 venkat_20182  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 10-March 09

how to convert object arrays into int array?

Post icon  Posted 10 March 2009 - 03:20 AM

Hello Guyz,

Can anyone temme how to convert object arrays into int array?

With Luv
Venkat
Is This A Good Question/Topic? 0
  • +

Replies To: how to convert object arrays into int array?

#2 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2684
  • View blog
  • Posts: 11,345
  • Joined: 20-September 08

Re: how to convert object arrays into int array?

Posted 10 March 2009 - 03:43 AM

What type of object?
Was This Post Helpful? 0
  • +
  • -

#3 mattsmee  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 08-March 09

Re: how to convert object arrays into int array?

Posted 10 March 2009 - 04:35 AM

do you have sample of codes you wrote so that we can refer to?
Was This Post Helpful? 0
  • +
  • -

#4 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8328
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: how to convert object arrays into int array?

Posted 10 March 2009 - 04:01 PM

View Postvenkat_20182, on 10 Mar, 2009 - 02:20 AM, said:

Hello Guyz,

Can anyone temme how to convert object arrays into int array?

With Luv
Venkat


Can see how to convert of Integer into an array of int
But if you convert and array of Cars into an array of int what do you want in that array of int ?
- the milleage of every car
- the weight of every car
- the size of the var
- the value in $ of every car
....

telle me how to convert a Car into an int
and I'll tell you how to convert an array of Cars into an array of int
Was This Post Helpful? 0
  • +
  • -

#5 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2684
  • View blog
  • Posts: 11,345
  • Joined: 20-September 08

Re: how to convert object arrays into int array?

Posted 10 March 2009 - 04:05 PM

If you mean how do you convert Integer[] to int[], you can't. You need to create a new array and copy the elements
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1