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);