Convert many examples to java backend

**please review**