Compile Error - The Type Comparable is not generic解決方法

做Java那麼多年了,還是第一次遇到這樣的問題

 

StringBuffer query = new StringBuffer(768);

 

query.append("12312312");

 

以上第二句代碼報錯:The type Comparable is not generic, it cannot be parameterized with arguments<string>  

 

百思不得其解。

 

在一個過期很長時間的論壇裏找到了這樣的回答:

 

The problem is related with classpath.
You should right click on the project in Eclipse and select properties,
select "Java Build Path" then click the "Order and Export" tab and move the java runtime to top of the jar list.
After that, rebuild your project.

發佈了12 篇原創文章 · 獲贊 1 · 訪問量 2528
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章