Question: If anyone is able to help me resolve this project im working on, getting Exception in thread main java.lang.ArrayIndexOutOfBoundsException: 0 at gcdpackage.Euclid.main(Euclid.java:13) D Euclid.java 2

If anyone is able to help me resolve this project im working on,

getting

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0

at gcdpackage.Euclid.main(Euclid.java:13)If anyone is able to help me resolve this project im working

D Euclid.java 2 Univeristy of Central Florida 3 COP3330 - Fall 2018 Author: 6 7 package gcdpackage; 8 9 public class Euclid 10 11 public static void main(String args[]) 12 13 14 15 16 17 18 19 20 21 int a-Integer.parseInt (args 0 int b- Integer.parseInt(args [11); System.out.println(); System.out.println("--"); System.out.println("Euclid's Algorithm by System.out.println("Inputs: "+a+", +b); System.out.println(); if(a>b) calGcd(a,b); else calGcd (b,a); 23 24 25 public static void calGcd(int a, int b) 26 27 28 29 30 31 32 int q, r-10,mul; while(r!=0) q-a/b; mul-q*b; r-a-mul; System . out . printin(a+" "+q+" x "+b+" + "+r); 34 35 36 37 38 39 40 41 42 ber; if(r-e) System.out.println("Gcd : "+a); TasksConsole Euclid (3) [Java Application] C:Program FilesJava\jdk1.8.0_181\ bin\javaw.exe (Sep 7, 2018, 1:37:19 PM Exception in thread "main" java.lang.ArrayIndexOutofBoundsException:e at gcdpackage.Euclid.main(Euclid.java:13)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!