Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要为我的机器人坐标创建 3000x3000 位图。理论上我有一个数组 MxM,M=3000,如果我的机器人看到了一些东西,那么在坐标 [5][5] 示例中我输入 1,如果什么也没看到则为 0。
当我尝试创建时 int[][] b = new int[3000][3000] ,我遇到了一个问题 - 内存不足。
int[][] b = new int[3000][3000]
我尝试使用 RMS,但我可以创建 3000 行,但只有 50 列
我想使用文本文件,但我需要自定义更新,并且在 j2me 中很难使用文本文件。
谢谢您的回复!
一些方法: