Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

set the SET method

 
Cougar Vis
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's something to play around with
 
Cougar Vis
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Michael Dunn:
Here's something to play around with

don't tell me you are a college student
 
Cougar Vis
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what do i need to actually do to able others to get this "customerID"?
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic