Java tutorial
//package com.java2s; //License from project: Apache License import android.database.Cursor; import android.support.annotation.NonNull; public class Main { public static double getDouble(@NonNull Cursor cursor, @NonNull String columnName) { return cursor.getDouble(cursor.getColumnIndex(columnName)); } }