teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

フォーマットのみ

2020/04/19 12:58

投稿

退会済みユーザー
answer CHANGED
@@ -5,15 +5,16 @@
5
5
  public class Main {
6
6
  public static void main(String[] args) throws Exception {
7
7
  // Your code here!
8
- SimpleDateFormat fmt = new SimpleDateFormat("EEE曜日", new Locale("JA", "jp", "jp"));
8
+ SimpleDateFormat fmt = new SimpleDateFormat("EEEEE", new Locale("JA", "jp", "jp"));
9
9
  Date date = new Date();
10
10
 
11
11
 
12
12
  System.out.println(fmt.format(date));
13
13
  }
14
14
  }
15
+
15
16
  ```
16
17
 
17
18
  配列に持たす意味もない気がする。
18
19
 
19
- [sample](https://paiza.io/projects/JH8kiFh9eotae4G1-7xOMg)
20
+ [sample](https://paiza.io/projects/kTaSNY5YDkzRkRuISbUD8Q)