Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.database.sqlite.SQLiteDatabase;

public class Main {

    public static void closeDb(SQLiteDatabase... dbs) {
        if (dbs == null)
            return;
        for (SQLiteDatabase db : dbs) {
            if (db != null) {
                db.close();
                db = null;
            }
        }
    }
}