早教吧 育儿知识 作业答案 考试题库 百科 知识分享

javaprogrammingproblem,howtosolveit?thankyou!(Summingalltheintegersinabinarydatafile)SupposeabinarydatafilenamedExercise193.dathasbeencreatedusingwriteInt(int)inDataOutputStream.Thefilecontainsanunspecifiednumberof

题目详情
java programming problem,how to solve it?thank you!
(Summing all the integers in a binary data file) Suppose a binary data file named Exercise19_3.dat has been created using writeInt(int) in DataOutputStream.The file contains an unspecified number of integers.Write a program to find the sum of integers.
I need code,not for translation.how to code it that the data was required from the .dat
▼优质解答
答案和解析
(所有的整数求和在二进制数据文件)假设一个二进制数据文件命名为Exercise19_3.已经创建了数据的使用writeInt在DataOutputStream(int).该文件包含了数量不明的整数.编写一个程序来找到整数之和.