Convert many examples to java backend

**do not review yet**
Actually, both work, I believe. I can change it if you want. Can you identify for me which lessons you would like reverted back to the old way?