Question
***** IN JAVA ***** Write a program that prompts the user to enter the name of a binary file. If the file exists, store it
***** IN JAVA *****
Write a program that prompts the user to enter the name of a binary file. If the file exists, store it as an AList of Bytes.
Prompt the user to enter a position in the file, and navigate to that position in the list. Use an iterator to print the 5 bytes before and the 5 bytes after.
Ask the user if they want to change the value in that byte position. If yes, allow the user to type in a byte value AS A TWO DIGIT HEX
Replace the value in the position with the new value.
Repeat this until the user specifies a position of -1.
Allow the user to save the binary file TO A NEW FILE LOCATION. Do NOT allow the user to save to a currently existing file.
Use a hex editor to verify that the file was correctly written and the changes were made.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started