こんにちは、私は単純なコードを使用して現在の日付を取得し、その形式を変更していますが、SimpleDateFormat クラスを使用するたびにアプリケーションが実行されずにクラッシュします。
ここにコードを貼り付けています:
Date d=new Date();
SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/YYYY",Locale.ENGLISH);
String newd= formatter.format(d);
私がここで犯している間違いを誰かが指摘できますか??
よろしくお願いします!