public class Main {
public static void main(String args[]) {
sumArray(8);
}
public static int sumArray(int nums){
assert nums == 5;
return nums;
}
}
I was just wondering, when I pass a number that is not equal to 5, why doesn't the compiler throw any errors, since I am asserting that nums
is equal to 5?