摘 要随着经济水平的提高,人们开始追求灵活、方便、快捷以及自助式服务,这使得自动售货机得以迅猛的进展。自动售货机吸引了大量的顾客,人们可以利用自动售货机购买饮料,零食等商品。在发达国家,自动售货机已经成为零售业不可分割的一部分,这种前卫的消费方式吸引了众多客户。并且,针对地球暖化,新型自动售货机的开发致力于能源的节约。本论文涉及到自动化、节能和计算机软件的开发,该软件可以更加方便的应用在自动售货机中。本文对用Java语言设计自动售货机进行了系统的讨论,利用Java语言实现自动售货机的硬币识别,币值累加,自动售货,自动找钱功能。该软件的程序代码具有灵活性和可扩展性,它可以重复使用,而且当整个系统实施一些新的特点时 ,对现有代码的影响较小。关键词:自动售货机;Java 设计模式;J2SEAbstractWith the improvement of economic level, people began to pursue a flexible, convenient, efficient, and self-service. A kind of machine which is called vending machine emerges and attracts quantities of customers to use it to buy drinks, snacks and similar products. In developed countries, the vending machine has become an integral part of the retail industry, this avant-garde way of consumption attracted many customers. And, in view of global warming, new development of vending machine is committed to energy saving. This paper involves the automation, energy efficiency and computer software development, which can be more convenient application in the vending machine. This thesis has a systemic study of the design of vending machine in the Java language. The system can achieve the functions such as coin recognition, currency accumulate, vending machines, automatically change by using Java language. The software program code has the flexibility and extensibility, so it can be repeated use, and when the entire system to implement some new characteristics, there will be less impact on existing code.Key words: Vending Machine; J...