aspose file tools*
The moose likes Beginning Java and the fly likes set the SET method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
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?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: set the SET method