关于#java#的问题:这段代码为什么给我报了Rename reference和Split into declaration and assignment的错误


@Test
    public void testSimpleDateFormat() throws ParseException {
    //实例化SimpleDateFormat 使用默认的构造器
    SimpleFormatter sdg=new SimpleFormatter();

    //格式化:日期---字符串
    Date date=new Date();
    System.out.println(date);
    String format = sdg.format(date);
    System.out.println(format);
    //解析:格式化的逆过程,字符串--日期
    String str="2019-080-09";
    Date date1=sdg.parse(str);
}

img

这段代码为什么给我报了Rename reference和Split into declaration and assignment的错误??哪里写错了吗

SimpleFormatter 换成 SimpleDateFormat