NZEC on Delicious Dishes with Java

I just can’t find what’s wrong with my program and why I keep on getting NZEC so I hope you guys can help.

Here’s my solution: 5oRevP - Online Java Compiler & Debugging Tool - Ideone.com

I have tried adding try catch clauses but I’m still getting the NZEC.