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.
現在の曜日が日曜日かどうかを確認したいのですが。どうすればそれを見つけることができますか?私はこれをアラーム活動で使用しています。私を助けてください。日曜日に作動しないアラームを設定したい。前もって感謝します。
カレンダークラスを使用して、その情報を確認します。
Calendar rightNow = Calendar.getInstance(); int day = rightNow.get(Calendar.DAY_OF_WEEK); if(day==Calendar.SUNDAY){ //its sunday }