Chapter 1 Introduction to Scripting

Corrections

  • The code sample demonstrating Java5 for loop should look like this:
    String[] arr = new String[]{"Mike", "Joe", "Bruce"};
    List<String> list = Arrays.asList(arr);
    for (String item : list) {
        System.out.println(item);
    }
  • Page 21:
    Next, we called the filter() function and passed the over() function as the second argumentshould be

    Next, we called the filter() function and passed the over() function as the first argument