Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.io.File;

public class Main {
    public static final String AUDIO_EXTENSION = ".mp3";

    public static boolean haveSuraAyahForQari(String baseDir, int sura, int ayah) {
        String filename = baseDir + File.separator + sura + File.separator + ayah + AUDIO_EXTENSION;
        File f = new File(filename);
        return f.exists();
    }
}