class One {
  public static void main(String[] args) {
    short n = 12;
    System.out.println( n ); 
    n = (short) (n + 13); 

    System.out.println( n ); 

  }
}

/* 

 1. is 1 (a literal) an int? 
 2. Comment the second line, print n.
 3. The problem line is n = n + 1; 
 4. Establish a goal: add 1 to n.
 4.1 Hypothesis: + turns integers into int or long
 4.2 Therefore we need to cast our troublemaker operands.
 4.3 We try: n = n + (short) 13; but that doesn't work.
     Explain. 
 4.4 As Gordan explains we need: n = (short) (n + 13); 
 5. So the conclusion is: 

 */