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