Log greater Than message - Android App

Android examples for App:Log

Description

Log greater Than message

Demo Code


//package com.java2s;
import android.util.Log;

public class Main {
    public static void greaterThan(int value, int start, String message) {
        if (value <= start) {
            Log.d("TTT", "Value : " + value + " | Compared: " + start);
            throw new IllegalArgumentException(message);
        }//w ww  .j a  v a2  s .c om
    }

    public static void greaterThan(int value, int start) {
        greaterThan(value, start, null);
    }
}

Related Tutorials