This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Refactoring int constant's to use enums Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Refactoring int constant Watch "Refactoring int constant New topic
Author

Refactoring int constant's to use enums

vuthlarhi donald
Ranch Hand

Joined: Jul 31, 2006
Posts: 76
These is how the code is looking at the moment, I want to use java enums instead of constant's,


the first step that I did was to create an enum that looks like this


...How do I save this enum to the database
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38033
    
  22
Do you need to save that enum in a database at all?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

How are you saving the current int?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Refactoring int constant's to use enums
 
Similar Threads
Benefits of enum types
Use of enum
switch on a string?
Coin Flipping Program!
Please help me with the logic of the code!