feat: task 2 for sheet6
This commit is contained in:
5
sheet06/a2/b.txt
Normal file
5
sheet06/a2/b.txt
Normal 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)
|
||||
Reference in New Issue
Block a user