i just generate this methode to find max val in some matrix and somehowe i was able to change int val insdie Ternary Operator (java 8) (the method compile and working) im not realy sure evan how its compile from what i saw online Ternary Operator syntax : can someone explain me what im missing here ? Answer The reason