basic java scripts