[Solved] Throwing exceptions syntax java
You have two issues: 1) Your closing } for the try is inside the if. 2) You are not properly calling the constructor of IllegalArgumentException. Do `throw new IllegalArgumentException(); In the future, you should read and try to understand the compiler message. It is most likely telling you exactly what there errors are and where. … Read more