Is there a way or method to read and read with a string, putting them in a new string, fixed four & lt ; Thankx
Absolutely. You will need it:
- Method
String.charAt (int) -
+operator (or methodString.concat, or, if the performance case, classStringBuilder) -
forstatement - and A
breakstatement with aif-statement
is explained in statements and operators, and in the method AP javadoc.
(And no, I will not provide an implementation because you will learn a bit by copying it)
Comments
Post a Comment