ManageStock2.java:104: error: method writeUTF in class RandomAccessFile cannot b
e applied to given types;
in.writeUTF(authors , titles ,ISBN);
^
required: String
found: String,String,String
reason: actual and formal argument lists differ in length
1 error
我已經初始化了變量。爲什麼我傳遞RandomAccessFile.writeUTF這些參數時會出錯?
String ISBN,ISBN2,authors,titles;
int levels,level2,stock;
我需要知道該寫什麼。我已經檢查過API了。
沒有你明白的部分錯誤消息的? – meriton 2012-04-29 12:26:16
你是否100%確定你應該在這裏使用英國皇家空軍? – 2012-04-29 12:27:43
是的100%肯定(氣墊船)。 我不知道爲什麼它接受in.writeUTF(作者等)(meriton) – 2012-04-29 12:29:31