// 
// This code demonstrates Java Scope Rules
// Will this code compile?  Assuming any errors
// are corrected... what will the output of the
// program be if:
//
//   - user enters  0  at the cin statement
//   - user enters -1 at the cin statement
//

import java.util.*;
public class ScopeExample
{
  public static void main(String[] args)
  {
    int i1 = 0;
    Scanner input = new Scanner(System.in);
    
    System.out.println( "Enter integer: ");
    i1 = input.nextInt();
    
    if (i1 >= 0)
    {
      System.out.println( "i1 is: ");
    }
    else
    {
      int i2 = 20;
      System.out.println( "i2 is: ");
    }
    
    System.out.println( "i1 is: ");
    System.out.println( "i2 is: ");
  }
}