Arrays
Data Types
Very simple Kata, simply print out every int in the Array.
Like if you solved :D
public class myWorld{
public void printArray(int[] arr){
for(int i = 0; i < arr.length; i++){
System.out.println(arr[i]);
}
}
}
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import org.junit.runners.JUnit4;
public class SolutionTest {
public void printArray(int[] arr) {
int pass1 = arr[0];
int pass2 = arr[1];
System.out.println(pass1);
System.out.println(pass2);
// etc.......
//
}
}