我開始學習JAVA,我認爲它比C更簡單,比C#更困難,所以我建立了一個使用JERSEY框架的項目,並且出現了一些錯誤,你想幫我解決這個錯誤嗎? 這裏是我的代碼 https://github.com/abcdef123ghi/jerseytest學習JAVA,但我有麻煩
我有5個錯誤,我不知道什麼是diffrenet用JAVA & C#,我只是triing寫一個Java項目,誤差
Description Resource Path Location Type
The method checkAuth(String, String) is undefined for the type myresource myresource.java /slwebservice/src/service line 40 Java Problem
Description Resource Path Location Type
The method inserttherecord(String, List<invdatas>) is undefined for the type myresource myresource.java /slwebservice/src/service line 43 Java Problem
Description Resource Path Location Type
The operator == is undefined for the argument type(s) int, null myresource.java /slwebservice/src/service line 31 Java Problem
Description Resource Path Location Type
This method must return a result of type int invdataManager.java /slwebservice/src/domain line 88 Java Problem
Description Resource Path Location Type
Type mismatch: cannot convert from java.util.Date to java.sql.Date invdataManager.java /slwebservice/src/domain line 223 Java Problem
感謝 問候 Ken
看到沒有觸發它們的行的錯誤是沒用的......也就是說,你發佈的錯誤看起來非常簡單,例如,checkAuth()方法接受字符串作爲參數,並且你發送它「myresource」類型的對象 – alfasin
從簡單的事情開始學習。你可以試試[The Java tutorials](https://docs.oracle.com/javase/tutorial/)。 – Willmore
不錯,但是我買了一本書,這是伊沃霍頓開始的JAVA 7版。我讀完了這本書,但是當錯誤出現時,我不知道如何解決這些問題 –