Hello , lovely people. welcome back to more coding than you can keep up with !
We will cover the exciting topic of exceptions.
Now ! pardon my enthusiasm but exceptions can indeed help you not get thrown out of your job.
How, you ask? Have I finally lost my marbles? Yes! , but more importantly exceptions will arise when an exception event occurs.
However, is not because of your perfect program, on the contrary it will be when a problem arises while the program it’s being executed.
Now don’t feel too bad yourself , There are times when exceptions occur and it wasn’t our fault !! ( I know that’s incredible )
But , they may happen when a user has entered an invalid data. A file that needed to be found was not found, or if you are really unlucky the network was lost.
So , if you are like me , and have been playing Pokemon go you are internally telling me how do I catch this pesky exceptions.
Say no more I bring to you the all mighty try/catch block , and the method caller “throws”.
( all code will be available at the bottom of the page with a link to the program inside my GitHub )

For, our example let’s look at a nice array with an index value of 6 .
However, If I want to win a poker game I want to access my favorite lucky number 7 !!

So , I prepare in case something goes wrong , and implement the try and catch block . For this scenario we will be using the ArrayIndexOutOfBoundsException
what nice , compact name am I right ? , anyways if for some mysterious reason something goes wrong we will print . ” We catch an exception “

Finally , we want to give our greedy user to turn back , and lower his/her access index value .

https://github.com/ValorWind1/Java_Review_1.0/tree/master/src/intermidiate_Java/exceptions