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.
我想在我的应用程序的当前时间 5 分钟后设置一个闹钟。我正在使用 calendar.getMinutes()+5 来获取当前时间(分钟)。但它不起作用。谁能告诉我我做错了什么?
Calendar cal = Calendar.getInstance(); // add 5 minutes to the calendar object cal.add(Calendar.MINUTE, 5);