Revert "Update FlagDemo.java"

This reverts commit 51bf3c0728e9e6cdcfff2a7c2ed40cb1f46fd68a.