Revert "Delete demo2.java"

This reverts commit b668f5b354439ab2961a51b4abd35f6fc0a0da90.