成功解决The type Dog is already defined问题 目录 解决问题 解决方法 解决问题 The type Dog is already defined 解决方法 比如声明变量Dog时,,是因为在同个项目的src源程序文件夹内,有不同java文件之间已定义该变量