Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: set the SET method
 
Similar Threads
Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
help please error message
Variables assigned to objects
no main method found
Can someone please help me out.