Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个菜单并在其中放置了一个退出按钮。现在,当我单击它时,它的行为就像一个后退按钮并关闭活动。
我希望通过此按钮完全关闭应用程序。我在程序末尾输入了这段代码:
finish(); System.exit(0);