11,570 questions
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
Kailash Sahu
141
Reputation points
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
import java.util.Scanner;
public class diss{
public static void main(String[] args) {
int a = Integer.parseInt(args[0]);
int b = Integer.parseInt(args[1]);
boolean res = (a%b==0 || b%a==0);
System.out.println("result=" + res);
}
}
Developer technologies C#
Sign in to answer