Incorporating Patrick's changes. I am not reall sure about the changes after the war, it is really 'or' it cannot be 'and'. I will change that when I do the reading through the whole chapter.
4 // BEGIN: theory.binary.constants.impl
5 public class Impl extends API {
6 protected void init(int version) throws IllegalStateException {
7 if (version != API.VERSION) {
8 throw new IllegalStateException("Wrong API version error!");
11 // FINISH: theory.binary.constants.impl
13 public static void main(String[] args) {
14 System.err.println("main expects version: " + API.VERSION);
16 System.err.println("done for version: " + API.VERSION);