Increment speed or angle. Which angle gives greatest range?

Time of flight and other details are on java console or system output.