Convert many examples to java backend

**please review**
done