Fuel Pulse
A Java library to get the fuel prices in India by city.
Loading...
Searching...
No Matches
Main.java
Go to the documentation of this file.
1package io.github.amithkoujalgi.fuelprices;
2
3import io.github.amithkoujalgi.fuelprices.types.City;
4import io.github.amithkoujalgi.fuelprices.types.FuelType;
5import io.github.amithkoujalgi.fuelprices.types.PriceSource;
6
7import java.io.IOException;
8
9public class Main {
10 public static void main(String[] args) throws IOException {
12 System.out.println(priceAPI.fetch(City.KARNATAKA.BENGALURU_RURAL, FuelType.PETROL));
13 }
14}
static void main(String[] args)
Definition Main.java:10
float fetch(String city, FuelType fuelType)
Definition PriceAPI.java:17