This week's book giveaway is in the Android forum.
We're giving away four copies of Android Programming: The Big Nerd Ranch Guide and have Bill Phillips & Chris Stewart on-line!
See this thread for details.
Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NX: where can i put the Map of locking and unlocking?  RSS feed

 
guyue0505
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application , i have a class named LockManager which control the lock and unlock . i think i will need a hashMap in this class. The key is the recNo and the value is the lockCookie of the correspond recNo.
And the lockManager has a function named setMap(Map hashMap){ this.hashMap =
hashMap; }
My question is where can i put the hashMap's declaretion , in Server.java
or other place?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!