/** 
*  This program one of two programs to demonstrate that the java &&
*  operator is a short circuit operator.
*  Since the first condition is false, the second condition will not
*  be looked at and therefore the ArrayIndexOutOfBoundsException will
*  not be thrown.
*
*  @author  Elizabeth Adams
*  @version 1
*/

public class ShortCircuit2a
{
  public static void main (String [] args)
  {
   int x [ ] =  { 1,2,3,4,5};
	int count = 1;
	int sum = 0;
	if (count <= 10) 
	    System.out.println (" condition 1 false");
   System.out.println (" condition 2 erroneous ");

	while ((count > 10) && (sum < x[10]))
	{
	  	    //  loop will never be entered
 	}
}
	




}