java日期类型加减怎么得到日期字符串呢?

我现在有一个java日期字符串2000-02-01这样的
然后我现在要得到它之前两天和之后两天的这样的日期字符,请问我要怎么做才能得到呢?

package cn.hutool.core.date;
用工具类简单

//常用偏移,
DateTime newDate2 = DateUtil.offsetDay(date, 2);
DateTime newDate2 = DateUtil.offsetDay(date, -2);

    public static void main(String[] args) throws ParseException {
        String a = "2000-02-01";
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
        Date dt = sdf.parse(a);
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(dt);
        // 日期加一天
        calendar.add(Calendar.DAY_OF_YEAR,1);
        Date time = calendar.getTime();
        String format = sdf.format(time);
        System.out.println(time);
    }

参考:https://blog.csdn.net/weixin_44826433/article/details/105202057