save actions and code format for Java