public static class ZahiMizrahiFirstException extends Exception {}
public static class ZahiMizrahiSecondException extends Exception {}
public static void main(String[] args) throws Exception {
//create an array of 10 numbers
int[] a = null;
int[] numbers = new int[]{1,2,3,4,5,6,7,8,9,10};
for(int i=0; i < numbers.length; i++){
if(numbers[i]%2 == 0)
throw new ZahiMizrahiFirstException();
else
numbers[i]=3;
}
}
}
I got this exception:
Exception in thread "main" FindEvenOrOddNumber$ZahiMizrahiFirstException
at FindEvenOrOddNumber.main(FindEvenOrOddNumber.java:14)
of course that I made up the exception so It wasn't found a result, I got this page:
it seems that in case of no results found, there isn't any special attention that needs to be done.
Hi BugQuery team,
I tried to use the following code:
I got this exception:
of course that I made up the exception so It wasn't found a result, I got this page:
it seems that in case of no results found, there isn't any special attention that needs to be done.