Gas Station in Java