subject

Design a class that has a static method named writearry. the method should take two arguments: 1)- the name of the filed. 2)- the reference to an int arry. the file should open as binary file, the content of the array should be written to file and then the file should closed. write a second method in the class name it readarry. the method should take two argument: 1)- the name of the filed. 2)- the reference to an int arry. the file should open as binary file. the data should be read form file and write to array and the should be closed. test your program with a demo program and submit your work as .java and screenshot.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 21:30, maddietomlinson113
Examine the list below. which factors positively affect lifetime income? check all that apply.
Answers: 1
image
Computers and Technology, 24.06.2019 21:40, justintintran
Assume you need to test a function named inorder. the function inorder receives three int arguments and returns true if and only if the arguments are in non-decreasing order: that is, the second argument is not < the first and the third is not < the second. write the definition of driver function testinorder whose job it is to determine whether inorder is correct. so testinorder returns true if inorder is correct and returns false otherwise. for the purposes of this exercise, assume inorder is an expensive function call, so call it as few times as possible!
Answers: 1
image
Computers and Technology, 25.06.2019 08:10, ruslffdr
Memory aids that organize information for encoding are
Answers: 3
image
Computers and Technology, 25.06.2019 10:10, tiffuuu
Suppose you and your friend live on the same street d miles away from each other. between your house and your friend’s house there are n motorized scooters positioned at distances x1, x2, . . , xn miles from your house towards your friend’s house. each scooter has a battery that may or may not be fully charged. let’s say that the scooters can take you distances d1, d2, . . , dn miles down the road. each scooter also has a price p1, p2, . . , pn that it takes to activate. any time you encounter another scooter, you may take the new scooter and leave your old scooter behind. there is an additional scooter at your house that you start with and it can go distance d0 miles and it is free to activate: p0 = 0. you wish to go to your friend’s house minimizing the total amount of money spent activating the scooters. design a dynamic programming algorithm that returns the minimum cost to get to your friend’s house using scooters x0, . . , xn.
Answers: 1
You know the right answer?
Design a class that has a static method named writearry. the method should take two arguments: 1)-...

Questions in other subjects:

Konu
Biology, 31.08.2021 23:50
Konu
Spanish, 31.08.2021 23:50