Log greater Than Or Equal message - Android App

Android examples for App:Log

Description

Log greater Than Or Equal message

Demo Code


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

public class Main {
    public static void greaterThanOrEqual(int value, int start,
            String message) {//from w  w w. j  a  v  a 2  s. c  o  m
        if (value < start) {
            Log.d("TTT", "Value : " + value + " | Compared: " + start);
            throw new IllegalArgumentException(message);
        }
    }

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

Related Tutorials