Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Latest commit

 

History

History
24 lines (21 loc) · 972 Bytes

README.md

File metadata and controls

24 lines (21 loc) · 972 Bytes

Coronavirus

License
Java API Wrapper for getting real-time Coronavirus (COVID-19, SARS-CoV-2) statistics via https://git.io/Jvoep.

Example

class Main {
    public static void main(String[] args){
        // Create an instance of the API.
        Coronavirus coronavirus = new Coronavirus();
        // Get latest data.
        Latest latest = coronavirus.getLatest();
        
        System.out.println("Latest Coronavirus Data:");
        System.out.println("Confirmed Cases: " + latest.getConfirmed());
        System.out.println("Deaths: " + latest.getDeaths());
        System.out.println("Recovered: " + latest.getRecovered());
    }
}

Installation

You can add the library to your project via Jitpack.