这里是英文原文的要求:write a Java class representing computer memory. The class will have the
following functionality:
•
Store data in a given memory location.
o
Input parameters: a memory address, a data value
o
Return value: a flag indicating success or failure
o
Action: store the data value in the memory location
•
Retrieve data from a memory location.
o
Input parameter: a memory address
o
Return value: the value stored in the given location
•
Delete data from a memory location
o
Input parameter: a memory location
o
Return value: a flag indicating success or failure
o
Action: write a random value into the memory location to erase the
original content
You may assume that the memory addresses and data values are of integer type.