Convert many examples to java backend

**do not review yet**
Eventually I replaced the rules you removed with the ones you added, but in some later lessons.  The idea of this lesson was to do things in a more ugly but computationally cleaner way.  But if this way does not work anymore, then fine, I'll deal with changing the tutorial when I get there next semester.