demos in java