This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes set the SET method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "set the SET method" Watch "set the SET method" New topic
Author

set the SET method

Cougar Vis
Greenhorn

Joined: May 12, 2004
Posts: 19
My problem is follow:

I would like to know how do i put the 'customerIDIn to the 'set' method? after I generated a random number and want to set it so other class can get it.
THANX :roll: :roll:
[ May 12, 2004: Message edited by: GK Leo ]
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Here's something to play around with
Cougar Vis
Greenhorn

Joined: May 12, 2004
Posts: 19
Originally posted by Michael Dunn:
Here's something to play around with

don't tell me you are a college student
Cougar Vis
Greenhorn

Joined: May 12, 2004
Posts: 19
what do i need to actually do to able others to get this "customerID"?
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
No understood the problem clearly.

Make the object of class

Customer cust = new Customer();

Now call cust.setCustomerID(customerIDin);

thats how you can set the customer id for the perticular object.

Is this you want? If not then describe the whole problem what you want to develop?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: set the SET method
 
Similar Threads
help please error message
no main method found
Can someone please help me out.
Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
Variables assigned to objects