From 294ccb147b55aeab2bd6035ecfbd43a3b6302c59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AF=8C=E6=B0=B8=20=E5=81=A5=E9=9B=84?= Date: Fri, 17 Jun 2022 04:15:24 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=95=E3=82=89=E3=81=AB=E3=82=B3=E3=83=A1?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=81=AE=E8=BF=BD=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Test/src/com/tomi/Test1.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Test/src/com/tomi/Test1.java b/Test/src/com/tomi/Test1.java index fe3204f..288ca6c 100644 --- a/Test/src/com/tomi/Test1.java +++ b/Test/src/com/tomi/Test1.java @@ -15,7 +15,8 @@ import org.junit.jupiter.api.Test; class Test1 { /** - * {@link HttpClient}̃Tv + * {@link HttpClient}のサンプル + * Java11から登場した{@link HttpClient}クラスを使ったHTTP通信のサンプルです */ @Test @@ -63,12 +64,12 @@ class Test1 { System.out.printf( "ld = %02d/%02d/%02d\n", ld.getYear(), ld.getMonthValue(), ld.getDayOfMonth() ); - System.out.printf( "%s {܂ł̓t = %d\n", + System.out.printf( "%s から本日までの日付 = %d日\n", ld.format(DateTimeFormatter.ofPattern("yyyy/MM/dd")), ChronoUnit.DAYS.between(ld, LocalDate.now())); LocalDateTime ldt = LocalDateTime.parse("2022-03-13 22:10:00", DateTimeFormatter.ofPattern("yyy-MM-dd HH:mm:ss")); - System.out.println( "2022-3-13 22:10:00LocalDateTime=>"+ ldt.format(DateTimeFormatter.ofPattern("yyy-MM-dd HH:mm:ss"))); + System.out.println( "2022-3-13 22:10:00のLocalDateTime=>"+ ldt.format(DateTimeFormatter.ofPattern("yyy-MM-dd HH:mm:ss"))); } } \ No newline at end of file -- 2.19.0