这篇文章针对java中定义常量如何解决灵活性提供了很好的思路,具体内容参考: https://www.ibm.com/developerworks/cn/java/l-java-interface/index.html