Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.database.Cursor;

public class Main {
    public static Integer gInt(Cursor cursor, String columeName) {
        Integer val = null;
        if (cursor.getColumnIndex(columeName) != -1) {
            val = cursor.getInt(cursor.getColumnIndex(columeName));
        }
        return val;
    }
}