Added formatRaw option in method print.
This commit is contained in:
parent
60d877a968
commit
53534be4b3
|
@ -1 +1 @@
|
|||
<mxfile host="app.diagrams.net" modified="2021-10-29T09:15:44.799Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36" etag="eR9aW1ZoS3LHMXKP3oGi" version="15.6.2" type="device"><diagram id="eWy9IwHxbh3JgAdMnOEg" name="Seite-1">7VvbcuI4EP0aqjIPSfkOPAbIzqaK7GSH2ZrMo2ILWxvZ8soiQL5+JUu+G8bJ4MpQ8QtltVrC6nPU3WrEyJyHu88UxMEd8SAeGZq3G5mLkWFMJwb/FIK9FNjaWAp8ijwp0gvBCr1AJdSUdIM8mFQUGSGYobgqdEkUQZdVZIBSsq2qrQmufmsMfNgQrFyAm9LvyGOBlE6McSH/EyI/yL5Zd6ayJwSZslpJEgCPbEsi82ZkzikhTD6FuznEwnaZXeS4Pw705i9GYcS6DJgunZvHu/gl+e6iv348wOXf/2wvbTnLM8AbteBvcMduPMQIVa/N9pktki0KMYh4a7YmEVupHp23AUZ+xJ9d/jKQcsEzpAxxM16rDkZiLnUDhL0l2JONeOWEAfcpa80CQtELnxZgNSfvpkwxwnAqGisxkos1LqUw4Tr3mR30mugO7CqKS5AwJXAJxiBO0GO+jBBQH0UzwhgJlVLTzMryYoVwVxIps3+GJISM7rnKLuO8HKG2gJm1twWhcpYEJTI5SgYUh/185gJm/qCQfgXq4wbqDawxSnFOGCVPOfOFidYI4znBnB7mIiKpUgY+hmvWAn2IPA+nk8XARZH/TVBhcakXkmU6cGEWkq/KCkJECQMMSJAEIhg8QnxPEsQQEfNTqTuLCYpYaip7NrIXqYSyOYn4IgBK0YMc/C0UBGjB9egG+TnYCl3O1E7gTnrCdtLANqboGTCY4gs4MqKX8DkM7Y6b5WLFKDe4splwmn7yqUEHvniW06EG/+sZIZ1BFXyrCb4QET52jVO/GXAewaiFEFXgZ9zYc+3KTpcz5229aL8bK0y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/2eF/IV4t7eBrsLN+eOB2pX8Zf740m7z6qZehZBN5qZsR2Bc6S5JWGwTf/oWM7VU1EWwYOUBN7cqaltmpX2ma9TN+itY9pIgvXRQ/U2GL46sxpWdPKG8JNun4Op6l/00qKaij90Ea6ppZpU9Gp0N0s+zJMX3+IF+hI8d4s/gLt1Qv/gdv3vwP</diagram></mxfile>
|
||||
<mxfile host="app.diagrams.net" modified="2021-11-05T07:25:00.496Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36" etag="21DEIXZccCMrK7KbIzcv" version="15.6.8" type="device"><diagram id="eWy9IwHxbh3JgAdMnOEg" name="Seite-1">7VvbUuM4EP2aVDEPUL4nPJLAsFSFHZbM1sCjsIWtRba8skISvn4lS747wUC8TAq/pKxWS7H6HHW3OsrInIXrSwri4Jp4EI8MzVuPzPORYdjahH8KwUYKLGcsBT5FnhTphWCBXqASakq6RB5MKoqMEMxQXBW6JIqgyyoyQClZVdUeCa5+awx82BAsXICb0l/IY4GUToxxIf8DIj/Ivll3TmVPCDJltZIkAB5ZlUTmxcicUUKYfArXM4iF7TK7yHHft/TmL0ZhxLoMOJ07Fw/X8Uvyy0V/3t/B+V9/r45tOcszwEu14J9wzS48xAhVr802mS2SFQoxiHhr+kgitlA9Om8DjPyIP7v8ZSDlgmdIGeJmPFMdjMRc6gYIe3OwIUvxygkD7lPWmgaEohc+LcBqTt5NmWKE4VQ0FmIkF2tcSmHCdW4yO+g10TVYVxTnIGFK4BKMQZygh3wZIaA+iqaEMRIqpaaZleXFCuG6JFJmv4QkhIxuuEq+CeQItQXMrL0qCJWzJCiRyVEyoDjs5zMXMPMHhfQbUB83UG9gjVGKc8IoecqZL0z0iDCeEczpYZ5HJFXKwMfwkbVAHyLPw+lkMXBR5P8UVDg/1gvJPB14bhaSW2UFIaKEAQYkSAIRDB4gviEJYoiI+anUncYERSw1lT0d2eephLIZifgiAErRgxz8FRQEaMF15w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RoTTfTaRGZtImmZxkQp8/Jlf4CMHS67fxUyZjfEDo6MWp2MxvvIaNeSY6ue8/ZNxg4XJb4KGbM6w6GT0Ry/0zN+OhnbrnUcNBk9kATQU2/zfmaaXd2k8Xsz05mYh8nM7O7CoTDzAxG5qxOc/NZMe3d2OK4zrb/s8N8QL+Z2cBusrXsPXC30H+PLY7PJq1e9DCXLyEvdjMC+0JmTtNog+PYPZGyjqolgycgWamon1mmZnfqJplmv8VO0biBFfOmi+JkK/2/Hl90IfJWOb+NZ+sekkoI6em+loa6ZVfpkdNpGN8ue7NLnD/IVOnKMN4v/b0v14k/w5sV/</diagram></mxfile>
|
|
@ -1,7 +1,28 @@
|
|||
public class SystemOut {
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class SystemOut {
|
||||
private boolean formatRaw;
|
||||
private int columnWidth;
|
||||
|
||||
public void print(ArrayList text) {
|
||||
if (formatRaw) {
|
||||
for(int counter = 0; counter < text.size(); counter++) {
|
||||
System.out.println("<" + counter + ">: <" + text.get(counter) + ">");
|
||||
}
|
||||
|
||||
}
|
||||
else {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void formatRaw() {
|
||||
formatRaw = true;
|
||||
}
|
||||
|
||||
public void formatFix(int length) {
|
||||
formatRaw = false;
|
||||
columnWidth = length;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,4 +2,7 @@ import static org.junit.jupiter.api.Assertions.*;
|
|||
|
||||
class SystemOutTest {
|
||||
|
||||
public void print(){
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue