Try with resources

Wrong indentation