Docsity

Computer Science - Debugging, Exercises of Computer Science

Partial preview of the text

Download Computer Science - Debugging and more Exercises Computer Science in PDF only on Docsity!

Computer Science Debugging Consider the following code: public static int[] del(int[] a,int dellndex) { if(dellndex < 0 || dellndex >= a.length) { return null; j int[] ret = new int[a.length - 1]; for(int i = 0;i < a.length; i++) { The rest is given below