HiI'm programmig a 2d game and i use a big background image as my map. I use the BufferedImage.getRGB(int x, int y) method to get data from my map. I want to transfer the data from the image to some other place where i can access the data faster. The question is which method is the best. I was thinking to use a treemap but i am not sure. Can somone help me please, and also show me te code to do it please

I have nothing else to say but that using a large image as a map for your game may give you very bad performance! You should look into other solutions like LWJGL (my personal favourite) or Java3d (hi Herkules .

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org