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.

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
Get step-by-step solutions from verified subject matter experts
