Java programing problem
<p>I have a Java program that requires me to create two arrays and a condition.</p>

<p>In that condition I have to decide if the program should continue running or not.The problem is that I don't know how to stop the program from running if the condition is not respected.</p>

<p>Can anyone tell me how and also how can I create a Scanner that lets me introduce the elements of an array? </p>
