Question: (Java Program on BlueJay) When I compile this program it says no syntax errors but when I run it this out comes up saying java.lang.ArrayIndexOutOfBoundsException:


(Java Program on BlueJay)
When I compile this program it says no syntax errors but when I run it this out comes up saying "java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 0". Can someone help me figure out why this is happening?
Blue! lerminal Window - Isasoning Day- ISASpringDay - Isa SpringDay- ISASpringDay X Compile Undo Cut Copy Paste Find... Close * % Java IsaSpringDay 3 20 * true * % Java IsaSpringDay 6 20 * true * % Java IsaSpringDay 4 15 * true * % Java IsaSpringDay 9 11 * false ************************************** public class ISASpringDay { Can only enter input while your programming is running java.lang. ArrayIndexOutOfBoundsException: Index 1 out of bounds for length o at Is AsprinaDay .main(TSASpringDay.java:29) java.lang. ArrayIndexOutOfBoundsException: Index o out of bounds for length o at Is AspringDay.main(ISASpringDay.java:29) java.lang. ArrayIndexOutOfBoundsException: Index out of bounds for length @ at ISASpringDay.main(ISASpringDay.java:29) java.lang. ArrayIndexOutOfBoundsException: Index o out of bounds for length o at Is ASpringDay.main(ISASpringDay.java:29) public static void main(String[] args) { int m = Integer.parseInt(args[@]): int d = Integer.parseInt(args[1]); boolean ans; ans = ((M==3) && (d>=20) && (d=20) && (d
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
