The answer in this question is that once the Adaptor or router received the destination IP address (even if we entered in the incorrect MAC address) the router or adapter would remove the IP address from the Ethernet frame and using ARP, would get the correct MAC address of the destination.
Answer:
import csv
def Csvreader(filename):
with open("filename", "r") as file:
content = file.csv_reader()
list_content = list(content)
file.close
return list_content
Explanation:
This is a python description of the function that reads the csv file and converts it to a list, from the list, each item can accessed with its index and updated directly. Use this to draw the same conclusion for a java program.