aspose file tools
The moose likes Beginning Java and the fly likes assigning arrays of objects Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "assigning arrays of objects" Watch "assigning arrays of objects" New topic
Author

assigning arrays of objects

James .D.Johnstone
Greenhorn

Joined: Dec 08, 2004
Posts: 20
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


thankyou for your input in advance
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1815
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.


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: assigning arrays of objects
 
Similar Threads
One Question
Why do we give "String [] args" as an argument to main??
doubt in mock exam java belt
Garbage collection
Hi