前几天写Java,因为是初学者,用的Eclipse,出现报错:Type dismatch,cannot convert from java.lang.String to String,我还以为是Eclipse的配置出了问题,因为问题确实比较简单,网上找不到答案,百思不得其解,本来想问别人的,后来想想还是锻炼一下自己解决问题的能力,搞了半天,终于搞懂了,
can‘t convert from java.lang.String to String
类名用了保留字String,改成String2就行了,期待后来者少走弯路。

相关文章:

  • 2021-10-17
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
猜你喜欢
  • 2022-03-11
  • 2021-08-20
  • 2021-10-11
  • 2021-06-26
  • 2021-12-13
  • 2022-02-14
  • 2022-12-23
相关资源
相似解决方案