From e5bad54734cdad91fe714b850ed3f1d11854607a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=96=A2=20=E5=A4=A7=E8=BC=9D?= Date: Mon, 10 Jul 2023 09:42:47 +0900 Subject: [PATCH 1/6] =?UTF-8?q?paiza=20C084=20=E3=81=AE=E5=9B=9E=E7=AD=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dseki/paiza/src/C084.java | 61 ++++++++++++++++++++++++++++++++++ dseki/paiza/test/C084Test.java | 24 +++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 dseki/paiza/src/C084.java create mode 100644 dseki/paiza/test/C084Test.java diff --git a/dseki/paiza/src/C084.java b/dseki/paiza/src/C084.java new file mode 100644 index 0000000..5fafb55 --- /dev/null +++ b/dseki/paiza/src/C084.java @@ -0,0 +1,61 @@ +import java.util.Scanner; + +/** + * 枠で囲むクラス. + */ +public class C084 { + private static final int NUMBER_TO_ENCLOSE_TEXT = 2; // 文字の左右を囲むための数 + private static final char DECORATION_SYMBOL = '+'; // 文字を囲むための装飾文字 + private final String text; // 読み込む文字列 + + C084(final String text) { + this.text = text; + } + + /** + * メインメソッドRun + */ + public static void main(final String[] args) { + final Scanner sc = new Scanner(System.in); + final String text = sc.nextLine(); + final C084 c084 = new C084(text); + c084.decorateText(); + sc.close(); + } + + /** + * 文字の周りを囲むメソッド. + */ + public void decorateText() { + decorateUpperAndLowerRowsOfText(); + decorateMiddleRowOfText(); + decorateUpperAndLowerRowsOfText(); + } + + /** + * 文字の上下に囲いを作るメソッド. + */ + public void decorateUpperAndLowerRowsOfText() { + final int textLength = countNumberOfCharacters(); + for (int i = 0; i < (textLength + NUMBER_TO_ENCLOSE_TEXT); i++) { + System.out.print(DECORATION_SYMBOL); + } + } + + /** + * 文字列の左右に囲いを作るメソッド. + */ + public void decorateMiddleRowOfText() { + System.out.println(); + System.out.println(DECORATION_SYMBOL + this.text + DECORATION_SYMBOL); + } + + /** + * 文字列の数を返すメソッド. + * + * @return 文字列の数を返す + */ + public int countNumberOfCharacters() { + return this.text.length(); + } +} \ No newline at end of file diff --git a/dseki/paiza/test/C084Test.java b/dseki/paiza/test/C084Test.java new file mode 100644 index 0000000..36141ae --- /dev/null +++ b/dseki/paiza/test/C084Test.java @@ -0,0 +1,24 @@ +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; +import org.junit.Test; + +public class C084Test { + + @Test + public void countNumberOfCharactersで_paiza_の文字列の数5を取得する() { + final C084 c084 = new C084("paiza"); + assertThat(c084.countNumberOfCharacters(), is(5)); + } + + @Test + public void countNumberOfCharactersで文字列の数0を取得する() { + final C084 c084 = new C084(""); + assertThat(c084.countNumberOfCharacters(), is(0)); + } + + @Test + public void countNumberOfCharactersでHello_Worldの文字列の数12を取得する() { + final C084 c084 = new C084("Hello World!"); + assertThat(c084.countNumberOfCharacters(), is(12)); + } +} -- GitLab From 277d23bc818bb75cb2b418dc68854889b949be32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=96=A2=20=E5=A4=A7=E8=BC=9D?= Date: Mon, 10 Jul 2023 09:45:24 +0900 Subject: [PATCH 2/6] =?UTF-8?q?Revert=20"paiza=20C084=20=E3=81=AE=E5=9B=9E?= =?UTF-8?q?=E7=AD=94"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e5bad54734cdad91fe714b850ed3f1d11854607a. --- dseki/paiza/src/C084.java | 61 ---------------------------------- dseki/paiza/test/C084Test.java | 24 ------------- 2 files changed, 85 deletions(-) delete mode 100644 dseki/paiza/src/C084.java delete mode 100644 dseki/paiza/test/C084Test.java diff --git a/dseki/paiza/src/C084.java b/dseki/paiza/src/C084.java deleted file mode 100644 index 5fafb55..0000000 --- a/dseki/paiza/src/C084.java +++ /dev/null @@ -1,61 +0,0 @@ -import java.util.Scanner; - -/** - * 枠で囲むクラス. - */ -public class C084 { - private static final int NUMBER_TO_ENCLOSE_TEXT = 2; // 文字の左右を囲むための数 - private static final char DECORATION_SYMBOL = '+'; // 文字を囲むための装飾文字 - private final String text; // 読み込む文字列 - - C084(final String text) { - this.text = text; - } - - /** - * メインメソッドRun - */ - public static void main(final String[] args) { - final Scanner sc = new Scanner(System.in); - final String text = sc.nextLine(); - final C084 c084 = new C084(text); - c084.decorateText(); - sc.close(); - } - - /** - * 文字の周りを囲むメソッド. - */ - public void decorateText() { - decorateUpperAndLowerRowsOfText(); - decorateMiddleRowOfText(); - decorateUpperAndLowerRowsOfText(); - } - - /** - * 文字の上下に囲いを作るメソッド. - */ - public void decorateUpperAndLowerRowsOfText() { - final int textLength = countNumberOfCharacters(); - for (int i = 0; i < (textLength + NUMBER_TO_ENCLOSE_TEXT); i++) { - System.out.print(DECORATION_SYMBOL); - } - } - - /** - * 文字列の左右に囲いを作るメソッド. - */ - public void decorateMiddleRowOfText() { - System.out.println(); - System.out.println(DECORATION_SYMBOL + this.text + DECORATION_SYMBOL); - } - - /** - * 文字列の数を返すメソッド. - * - * @return 文字列の数を返す - */ - public int countNumberOfCharacters() { - return this.text.length(); - } -} \ No newline at end of file diff --git a/dseki/paiza/test/C084Test.java b/dseki/paiza/test/C084Test.java deleted file mode 100644 index 36141ae..0000000 --- a/dseki/paiza/test/C084Test.java +++ /dev/null @@ -1,24 +0,0 @@ -import static org.hamcrest.CoreMatchers.*; -import static org.junit.Assert.*; -import org.junit.Test; - -public class C084Test { - - @Test - public void countNumberOfCharactersで_paiza_の文字列の数5を取得する() { - final C084 c084 = new C084("paiza"); - assertThat(c084.countNumberOfCharacters(), is(5)); - } - - @Test - public void countNumberOfCharactersで文字列の数0を取得する() { - final C084 c084 = new C084(""); - assertThat(c084.countNumberOfCharacters(), is(0)); - } - - @Test - public void countNumberOfCharactersでHello_Worldの文字列の数12を取得する() { - final C084 c084 = new C084("Hello World!"); - assertThat(c084.countNumberOfCharacters(), is(12)); - } -} -- GitLab From da3295eef531f94ecd5f8ca007b29f8446e1aba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=96=A2=20=E5=A4=A7=E8=BC=9D?= Date: Mon, 10 Jul 2023 09:48:22 +0900 Subject: [PATCH 3/6] =?UTF-8?q?paiza=20C084=20=E3=81=AE=E5=9B=9E=E7=AD=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dseki/paiza/src/C084.java | 61 ++++++++++++++++++++++++++++++++++ dseki/paiza/test/C084Test.java | 25 ++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 dseki/paiza/src/C084.java create mode 100644 dseki/paiza/test/C084Test.java diff --git a/dseki/paiza/src/C084.java b/dseki/paiza/src/C084.java new file mode 100644 index 0000000..9ed01cf --- /dev/null +++ b/dseki/paiza/src/C084.java @@ -0,0 +1,61 @@ +import java.util.Scanner; + +/** + * 枠で囲むクラス. + */ +public class C084 { + private static final int NUMBER_TO_ENCLOSE_TEXT = 2; // 文字の左右を囲むための数 + private static final char DECORATION_SYMBOL = '+'; // 文字を囲むための装飾文字 + private final String text; // 読み込む文字列 + + C084(final String text) { + this.text = text; + } + + /** + * メインメソッド. + */ + public static void main(final String[] args) { + final Scanner sc = new Scanner(System.in); + final String text = sc.nextLine(); + final C084 c084 = new C084(text); + c084.decorateText(); + sc.close(); + } + + /** + * 文字の周りを囲むメソッド. + */ + public void decorateText() { + decorateUpperAndLowerRowsOfText(); + decorateMiddleRowOfText(); + decorateUpperAndLowerRowsOfText(); + } + + /** + * 文字の上下に囲いを作るメソッド. + */ + public void decorateUpperAndLowerRowsOfText() { + final int textLength = countNumberOfCharacters(); + for (int i = 0; i < (textLength + NUMBER_TO_ENCLOSE_TEXT); i++) { + System.out.print(DECORATION_SYMBOL); + } + } + + /** + * 文字列の左右に囲いを作るメソッド. + */ + public void decorateMiddleRowOfText() { + System.out.println(); + System.out.println(DECORATION_SYMBOL + this.text + DECORATION_SYMBOL); + } + + /** + * 文字列の数を返すメソッド. + * + * @return 文字列の数を返す + */ + public int countNumberOfCharacters() { + return this.text.length(); + } +} \ No newline at end of file diff --git a/dseki/paiza/test/C084Test.java b/dseki/paiza/test/C084Test.java new file mode 100644 index 0000000..5b1cf21 --- /dev/null +++ b/dseki/paiza/test/C084Test.java @@ -0,0 +1,25 @@ +import static org.hamcrest.CoreMatchers.*; +import static org.junit.Assert.*; +import org.junit.Test; + +public class C084Test { + + @Test + public void countNumberOfCharactersで_paiza_の文字列の数5を取得する() { + final C084 c084 = new C084("paiza"); + assertThat(c084.countNumberOfCharacters(), is(5)); + } + + @Test + public void countNumberOfCharactersで文字列の数0を取得する() { + final C084 c084 = new C084(""); + assertThat(c084.countNumberOfCharacters(), is(0)); + } + + @Test + public void countNumberOfCharactersでHello_Worldの文字列の数12を取得する() { + final C084 c084 = new C084("Hello World!"); + assertThat(c084.countNumberOfCharacters(), is(12)); + } +} + -- GitLab From 30497bf2d507da22ea57eebb36735975b20307cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=96=A2=20=E5=A4=A7=E8=BC=9D?= Date: Mon, 10 Jul 2023 11:09:20 +0900 Subject: [PATCH 4/6] =?UTF-8?q?paiza=20C084=20=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dseki/paiza/src/C084.java | 52 ++++++++++++++++++++++------ dseki/paiza/test/C084Test.java | 63 +++++++++++++++++++++++++++++++++- 2 files changed, 104 insertions(+), 11 deletions(-) diff --git a/dseki/paiza/src/C084.java b/dseki/paiza/src/C084.java index 9ed01cf..55bc1db 100644 --- a/dseki/paiza/src/C084.java +++ b/dseki/paiza/src/C084.java @@ -6,6 +6,7 @@ import java.util.Scanner; public class C084 { private static final int NUMBER_TO_ENCLOSE_TEXT = 2; // 文字の左右を囲むための数 private static final char DECORATION_SYMBOL = '+'; // 文字を囲むための装飾文字 + private static final String NEW_LINE = "\n"; // 改行のための文字列 private final String text; // 読み込む文字列 C084(final String text) { @@ -19,35 +20,66 @@ public class C084 { final Scanner sc = new Scanner(System.in); final String text = sc.nextLine(); final C084 c084 = new C084(text); - c084.decorateText(); + c084.outputDecorateText(); sc.close(); } /** * 文字の周りを囲むメソッド. */ - public void decorateText() { - decorateUpperAndLowerRowsOfText(); - decorateMiddleRowOfText(); - decorateUpperAndLowerRowsOfText(); + public String decorateText() { + String decoration = ""; + decoration += decorateUpperAndLowerRowsOfText(); + decoration += NEW_LINE; + decoration += decorateMiddleRowOfText(); + decoration += NEW_LINE; + decoration += decorateUpperAndLowerRowsOfText(); + return decoration; + } + + /** + * 文字の周りを囲む出力メソッド. + */ + public void outputDecorateText() { + System.out.println(decorateText()); } /** * 文字の上下に囲いを作るメソッド. + * + * @return 囲みたい文字列の上下に出力する枠を返す */ - public void decorateUpperAndLowerRowsOfText() { + public String decorateUpperAndLowerRowsOfText() { + String decoration = ""; final int textLength = countNumberOfCharacters(); for (int i = 0; i < (textLength + NUMBER_TO_ENCLOSE_TEXT); i++) { - System.out.print(DECORATION_SYMBOL); + decoration += DECORATION_SYMBOL; } + return decoration; + } + + /** + * 文字列の上下に囲いを作る出力メソッド. + */ + public void outputDecorateUpperAndLowerRowsOfText() { + System.out.println(decorateUpperAndLowerRowsOfText()); } /** * 文字列の左右に囲いを作るメソッド. + * + * @return 左右を枠で囲んだ文字列を返す + */ + public String decorateMiddleRowOfText() { + final String decoration = DECORATION_SYMBOL + this.text + DECORATION_SYMBOL; + return decoration; + } + + /** + * 文字列の左右に囲いを作る出力メソッド. */ - public void decorateMiddleRowOfText() { - System.out.println(); - System.out.println(DECORATION_SYMBOL + this.text + DECORATION_SYMBOL); + public void outputDecorateMiddleRowOfText() { + System.out.println(decorateMiddleRowOfText()); } /** diff --git a/dseki/paiza/test/C084Test.java b/dseki/paiza/test/C084Test.java index 5b1cf21..c6390de 100644 --- a/dseki/paiza/test/C084Test.java +++ b/dseki/paiza/test/C084Test.java @@ -3,7 +3,7 @@ import static org.junit.Assert.*; import org.junit.Test; public class C084Test { - + @Test public void countNumberOfCharactersで_paiza_の文字列の数5を取得する() { final C084 c084 = new C084("paiza"); @@ -21,5 +21,66 @@ public class C084Test { final C084 c084 = new C084("Hello World!"); assertThat(c084.countNumberOfCharacters(), is(12)); } + + + @Test + public void decorateMiddleRowOfTextでpaizaの左右を囲む() { + final C084 c084 = new C084("paiza"); + assertThat(c084.decorateMiddleRowOfText(), is("+paiza+")); + } + + @Test + public void decorateMiddleRowOfTextで空文字の左右を囲む() { + final C084 c084 = new C084(""); + assertThat(c084.decorateMiddleRowOfText(), is("++")); + } + + @Test + public void decorateMiddleRowOfTextでHello_Worldの左右を囲む() { + final C084 c084 = new C084("Hello World!"); + assertThat(c084.decorateMiddleRowOfText(), is("+Hello World!+")); + } + + + @Test + public void decorateUpperAndLowerRowsOfTextでpaizaの上下の枠を取得する() { + final C084 c084 = new C084("paiza"); + assertThat(c084.decorateUpperAndLowerRowsOfText(), is("+++++++")); + } + + @Test + public void decorateUpperAndLowerRowsOfTextで空文字の上下の枠を取得する() { + final C084 c084 = new C084(""); + assertThat(c084.decorateUpperAndLowerRowsOfText(), is("++")); + } + + @Test + public void decorateUpperAndLowerRowsOfTextでHello_Worldの上下の枠を取得する() { + final C084 c084 = new C084("Hello World!"); + assertThat(c084.decorateUpperAndLowerRowsOfText(), is("++++++++++++++")); + } + + + @Test + public void decorateTextでpaizaの周りを枠で囲む() { + final C084 c084 = new C084("paiza"); + assertThat(c084.decorateText(), is("+++++++\n" + + "+paiza+\n" + "+++++++")); + } + + @Test + public void decorateTextで空文字の周りを枠で囲む() { + final C084 c084 = new C084(""); + assertThat(c084.decorateText(), is("++\n" + + "++\n" + "++")); + } + + @Test + public void decorateTextでHello_Worldの周りを枠で囲む() { + final C084 c084 = new C084("Hello World!"); + assertThat(c084.decorateText(), is("++++++++++++++\n" + + "+Hello World!+\n" + "++++++++++++++")); + } + } -- GitLab From 6357e1d24956a1fbcea08f78c18ca285449f5673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=96=A2=20=E5=A4=A7=E8=BC=9D?= Date: Mon, 10 Jul 2023 11:47:26 +0900 Subject: [PATCH 5/6] =?UTF-8?q?paiza=20C084=20=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dseki/paiza/src/C084.java | 24 +++---------- dseki/paiza/test/C084Test.java | 65 ++++++++-------------------------- 2 files changed, 19 insertions(+), 70 deletions(-) diff --git a/dseki/paiza/src/C084.java b/dseki/paiza/src/C084.java index 55bc1db..56d7e9e 100644 --- a/dseki/paiza/src/C084.java +++ b/dseki/paiza/src/C084.java @@ -6,7 +6,7 @@ import java.util.Scanner; public class C084 { private static final int NUMBER_TO_ENCLOSE_TEXT = 2; // 文字の左右を囲むための数 private static final char DECORATION_SYMBOL = '+'; // 文字を囲むための装飾文字 - private static final String NEW_LINE = "\n"; // 改行のための文字列 + private static final String NEW_LINE = System.getProperty("line.separator"); // 改行のための文字列 private final String text; // 読み込む文字列 C084(final String text) { @@ -27,7 +27,7 @@ public class C084 { /** * 文字の周りを囲むメソッド. */ - public String decorateText() { + String decorateText() { String decoration = ""; decoration += decorateUpperAndLowerRowsOfText(); decoration += NEW_LINE; @@ -49,7 +49,7 @@ public class C084 { * * @return 囲みたい文字列の上下に出力する枠を返す */ - public String decorateUpperAndLowerRowsOfText() { + String decorateUpperAndLowerRowsOfText() { String decoration = ""; final int textLength = countNumberOfCharacters(); for (int i = 0; i < (textLength + NUMBER_TO_ENCLOSE_TEXT); i++) { @@ -58,36 +58,22 @@ public class C084 { return decoration; } - /** - * 文字列の上下に囲いを作る出力メソッド. - */ - public void outputDecorateUpperAndLowerRowsOfText() { - System.out.println(decorateUpperAndLowerRowsOfText()); - } - /** * 文字列の左右に囲いを作るメソッド. * * @return 左右を枠で囲んだ文字列を返す */ - public String decorateMiddleRowOfText() { + private String decorateMiddleRowOfText() { final String decoration = DECORATION_SYMBOL + this.text + DECORATION_SYMBOL; return decoration; } - /** - * 文字列の左右に囲いを作る出力メソッド. - */ - public void outputDecorateMiddleRowOfText() { - System.out.println(decorateMiddleRowOfText()); - } - /** * 文字列の数を返すメソッド. * * @return 文字列の数を返す */ - public int countNumberOfCharacters() { + int countNumberOfCharacters() { return this.text.length(); } } \ No newline at end of file diff --git a/dseki/paiza/test/C084Test.java b/dseki/paiza/test/C084Test.java index c6390de..80294b3 100644 --- a/dseki/paiza/test/C084Test.java +++ b/dseki/paiza/test/C084Test.java @@ -3,83 +3,46 @@ import static org.junit.Assert.*; import org.junit.Test; public class C084Test { + private static final String NEW_LINE = System.getProperty("line.separator"); @Test - public void countNumberOfCharactersで_paiza_の文字列の数5を取得する() { + public void countNumberOfCharactersで_paiza_の文字列の数5を取得する() throws Exception { final C084 c084 = new C084("paiza"); assertThat(c084.countNumberOfCharacters(), is(5)); } @Test - public void countNumberOfCharactersで文字列の数0を取得する() { + public void countNumberOfCharactersで文字列の数0を取得する() throws Exception { final C084 c084 = new C084(""); assertThat(c084.countNumberOfCharacters(), is(0)); } @Test - public void countNumberOfCharactersでHello_Worldの文字列の数12を取得する() { + public void countNumberOfCharactersでHello_Worldの文字列の数12を取得する() throws Exception { final C084 c084 = new C084("Hello World!"); assertThat(c084.countNumberOfCharacters(), is(12)); - } - - - @Test - public void decorateMiddleRowOfTextでpaizaの左右を囲む() { - final C084 c084 = new C084("paiza"); - assertThat(c084.decorateMiddleRowOfText(), is("+paiza+")); - } - - @Test - public void decorateMiddleRowOfTextで空文字の左右を囲む() { - final C084 c084 = new C084(""); - assertThat(c084.decorateMiddleRowOfText(), is("++")); - } - - @Test - public void decorateMiddleRowOfTextでHello_Worldの左右を囲む() { - final C084 c084 = new C084("Hello World!"); - assertThat(c084.decorateMiddleRowOfText(), is("+Hello World!+")); - } - - - @Test - public void decorateUpperAndLowerRowsOfTextでpaizaの上下の枠を取得する() { - final C084 c084 = new C084("paiza"); - assertThat(c084.decorateUpperAndLowerRowsOfText(), is("+++++++")); - } - - @Test - public void decorateUpperAndLowerRowsOfTextで空文字の上下の枠を取得する() { - final C084 c084 = new C084(""); - assertThat(c084.decorateUpperAndLowerRowsOfText(), is("++")); - } - - @Test - public void decorateUpperAndLowerRowsOfTextでHello_Worldの上下の枠を取得する() { - final C084 c084 = new C084("Hello World!"); - assertThat(c084.decorateUpperAndLowerRowsOfText(), is("++++++++++++++")); - } + } @Test - public void decorateTextでpaizaの周りを枠で囲む() { + public void decorateTextでpaizaの周りを枠で囲む() throws Exception { final C084 c084 = new C084("paiza"); - assertThat(c084.decorateText(), is("+++++++\n" - + "+paiza+\n" + "+++++++")); + assertThat(c084.decorateText(), is("+++++++" + NEW_LINE + + "+paiza+" + NEW_LINE + "+++++++")); } @Test - public void decorateTextで空文字の周りを枠で囲む() { + public void decorateTextで空文字の周りを枠で囲む() throws Exception { final C084 c084 = new C084(""); - assertThat(c084.decorateText(), is("++\n" - + "++\n" + "++")); + assertThat(c084.decorateText(), is("++" + NEW_LINE + + "++" + NEW_LINE + "++")); } @Test - public void decorateTextでHello_Worldの周りを枠で囲む() { + public void decorateTextでHello_Worldの周りを枠で囲む() throws Exception { final C084 c084 = new C084("Hello World!"); - assertThat(c084.decorateText(), is("++++++++++++++\n" - + "+Hello World!+\n" + "++++++++++++++")); + assertThat(c084.decorateText(), is("++++++++++++++" + NEW_LINE + + "+Hello World!+" + NEW_LINE + "++++++++++++++")); } } -- GitLab From 9648adf812fd4357baf8743240bc0a1de6bffd99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=96=A2=20=E5=A4=A7=E8=BC=9D?= Date: Mon, 10 Jul 2023 11:49:16 +0900 Subject: [PATCH 6/6] =?UTF-8?q?paiza=20C084=20=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dseki/paiza/src/C084.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dseki/paiza/src/C084.java b/dseki/paiza/src/C084.java index 56d7e9e..ffe5bf4 100644 --- a/dseki/paiza/src/C084.java +++ b/dseki/paiza/src/C084.java @@ -49,7 +49,7 @@ public class C084 { * * @return 囲みたい文字列の上下に出力する枠を返す */ - String decorateUpperAndLowerRowsOfText() { + private String decorateUpperAndLowerRowsOfText() { String decoration = ""; final int textLength = countNumberOfCharacters(); for (int i = 0; i < (textLength + NUMBER_TO_ENCLOSE_TEXT); i++) { -- GitLab