• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

assigning arrays of objects

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In a program I have to create a MyClass class a HisClass class and also a main program class which generates output.in MyClass there are names passed to it from the main class using the JOptionPane,24 in all .In the HisClass I have to create an array of MyClass objects and assign each object it`s individual value ie the name passed to the MyClass class.I have all but finnished the program but am at a loss as to how to assign the name values to the array. I wonder if someone could point me in the deirection of some text on this subject on the net or give an explanation on passing USERDEFINED objects between classes.
Thanks in advance
 
Bartender
Posts: 1844
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm a little bit confused at your question. Could you post the relevent portions of your code and we can try to explain what you want to do.
 
I think she's lovely. It's this tiny ad that called her crazy:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic