I need to create 3000x3000 bit map for coords of my robots. In theory I have a array MxM, M=3000, and if my robot see somthing, then in coords [5][5] example I put 1, if see nothing then 0.
When I tried create int[][] b = new int[3000][3000]
I have a problem - outofmemory.
I tried use RMS, but I can create 3000 rows, but only 50 cols
I think to use textfile, but I need a custom update, and working with textfile very hard in j2me.
Some approaches: