feat: task 2 for sheet6

This commit is contained in:
Unbreathable
2026-06-04 18:58:56 +02:00
parent 58553b688a
commit 4ff7e162ac
8 changed files with 14 additions and 1 deletions

5
sheet06/a2/b.txt Normal file
View File

@@ -0,0 +1,5 @@
Java has bounds checking for arraycopy and other functions built-in, therefore when trying to do the same thing as before we get:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 144 out of bounds for char[128]
at java.base/java.lang.System.arraycopy(Native Method)
at assignment2b.main(assignment2b.java:14)