- 博客(1)
- 收藏
- 关注
原创 编译报错The constructor StringBuffer(String) is undefined
在学习StringBuffer过程中出现这种编译错误:“The constructor StringBuffer(String) is undefined”,在查询后得到如下结果:但是,按照所建议的加上包名“java.lang.StringBuffer”后,仍显示编译错误:“The import java.lang.StringBuffer conflicts with a type defined in the same file”。我认为两个报错原因都是因为:类名和StringBuf..
2022-05-11 22:18:43 2132
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人