自动售货机软件设计及其在节能方面的研究——以Java设计模式为核心的J2SE应用

0 下载量 8 浏览量 更新于2024-01-24 收藏 1.24MB DOC 举报
automatic vending machine" has been rapidly developed. The automatic vending machine attracts a large number of customers, people can use it to purchase drinks, snacks and other goods. In developed countries, the automatic vending machine has become an integral part of the retail industry. This avant-garde consumption method attracts numerous customers. Moreover, in response to global warming, the development of new automatic vending machines is committed to energy saving. This paper involves automation, energy saving and computer software development. The software can be more conveniently applied in the automatic vending machine. This paper systematically studies the design of the automatic vending machine using the Java language, and implements the functions of coin recognition, coin accumulation, automatic vending and change giving in the automatic vending machine. The program code of the software has flexibility and scalability, it can be reused, and when some new features are implemented in the entire system, it has little impact on the existing code. Keywords: automatic vending machine, Java design pattern, J2SE