Question: Write a Java program that reads the following: Display all the names of a given length from names.dat. This file is in binary. Each entry

Write a Java program that reads the following:

Display all the names of a given length from names.dat. This file is in binary. Each entry is in the format: name length (integer) and name (string).

There are no String reading methods for binary files. You'll have to figure out how to use the length value and readChar method to read all the names.

Write a Java program that reads the following: Display all the names

Question 2 15 points Display all the names of a given length from names.dat. This file is in binary. Each entry is in the format: name length (integer) and name (string) There are no String reading methods for binary filea. You'll have to figure out how to use the length value and readChar method to read all the names View required output Test Case 1 Standard Input Files in the same directory names.dat Enter a length in Names of length 9 Ki Burgon Nara Huie Dori Hull 3 results Test Case 2 Standard Input Files in the same directory names dat Enter a length in Ramar of length 10 Itin e rarla compressione e le id-43875 Question 2 15 points Display all the names of a given length from names.dat. This file is in binary. Each entry is in the format: name length (integer) and name (string) There are no String reading methods for binary filea. You'll have to figure out how to use the length value and readChar method to read all the names View required output Test Case 1 Standard Input Files in the same directory names.dat Enter a length in Names of length 9 Ki Burgon Nara Huie Dori Hull 3 results Test Case 2 Standard Input Files in the same directory names dat Enter a length in Ramar of length 10 Itin e rarla compressione e le id-43875

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!