7
$\begingroup$

Consider the following Java program:

public class Program {
    public static void main(String[] args) {
        Object[][] matrix = new Object[][]{{0,8,4,3,2},{3,4,0,4,2},{1,2,new Exception(),5,2},{2,1,2,9,3},{1,2,0,6,5}};
        for (int i = 0; i < matrix.length; i++) {
            System.out.println(java.util.Arrays.toString(matrix[i]));
        }
    }
}

What phrase is this referencing?

$\endgroup$
7
$\begingroup$

Is it:

"There's a glitch in the matrix" or something close to that?
There's a few one liners with small variations but the one that rings a bell is when they're walking up the stairs and see the same black cat twice.

$\endgroup$
  • $\begingroup$ Would that actually throw the exception though? Pretty sure it'd crash with an illegalMatrix something or other error which adds a second layer of hint as the matrix in the code has multiple glitches. @AMACB $\endgroup$ – Z. Dailey Mar 29 '16 at 22:29
  • $\begingroup$ It doesn't throw the exception, but if you run it, it will print a matrix and in the middle you have a "java.lang.Exception". $\endgroup$ – Gendarme Mar 29 '16 at 22:39
  • $\begingroup$ Yah. Figured it'd throw some other exception. @Gendarme thanks for clarification. Not at a comp to run it. $\endgroup$ – Z. Dailey Mar 29 '16 at 22:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.