Create ThreadStateDemo.java