求牛人帮小弟编一个Java程序,程序的目的是能够代表计算机内存,具有储存检索和删除数据的功能,拜谢!

这里是英文原文的要求: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.

应用Baiduhi联系
有时间能搞定你的题目

6 | ES:\\5945B69B6A276BCCF5536835A500A9FA
5 | 交易提醒:预付定金有风险
7 |
1 | 北京易软个人软件
5 | 全职软件开发团队
6 | 十年信誉铸成品质
1 | 速度专业积累效率
5 | 开发管理系统更有优惠
温馨提示:答案为网友推荐,仅供参考
第1个回答  2011-08-23
这该不会是哪个外企的面试踢吧?
你看看HashMap的源码,模拟着写个类似HashMap的东西就可以了
相似回答