Convert many examples to java backend

**please review**
same as above: done