I want to make a method where if you don't supply the last value, it assumes it to be false. The only problem is that I have no Idea how to do that! Does someone else know, or is it not even possible?
public void block(int x, int y, boolean movable){ addObject(new Block(movable),x*20+20,getHeight()-y*20-20); } public void block(int x, int y){ addObject(new Block(false),x*20+20,getHeight()-y*20-20); }