Gas.java - Added. Pseudocode