Alright so here is what I have so far I've been researching setInterval however, I'm a bit unsure how to implement it. P.S. Thank you for helping me
import java.util.Scanner;
public class GasStationMain {
private static Scanner in = new Scanner(System.in);
public static void main(String[] args) {
double userinput;
double gasTank = 0;
double regular = 1.70;
double premium = 1.75;
double superGas = 1.80;
System.out.println("Welcome to a generic Gas Station!");
System.out.println("");
System.out.println("How big is your gas tank? (in gallons) > ");
gasTank = in.nextDouble();
System.out.println("How much gas do you think you already have? (guess in gallons) > ");
userinput = in.nextDouble();
gasTank -= userinput;
System.out.println("1. Regular $1.70 per gallon");
System.out.println("2. Premium $1.75 per gallon");
System.out.println("3. Super $1.80 per gallon");
System.out.println("What type of gas do you want? (1-3) >");
}
}