File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
text-io/src/main/java/org/beryx/textio Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -178,14 +178,15 @@ default void println(String message) {
178178 }
179179
180180 /**
181- * Prints a decorated line separator with a character of choice determined by the String parameter.
182- * the length parameter dictates how many characters the decorator should be.
183- * the decorator does not need to be a single character ie : '*' ... it could also be ie '+++' if desired.
181+ * Prints a decorated line separator.
182+ * @param decorator the string used to decorate the line.
183+ * It can consist of a single character (e.g. "*") or a sequence of characters (e.g. "+--").
184+ * @param length the number of times the decorator string should be repeated.
184185 */
185- default void separateLineWithDecorator (String s , int length ) {
186+ default void separateLineWithDecorator (String decorator , int length ) {
186187 String separator = "" ;
187188 for (int i = 0 ; i < length ; i ++){
188- separator = separator + s ;
189+ separator = separator + decorator ;
189190 }
190191 print (separator );
191192 println ();
You can’t perform that action at this time.
0 commit comments