Log lower Than message - Android App

Android examples for App:Log

Description

Log lower Than message

Demo Code


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

public class Main {
    public static void lowerThan(int value, int end, String message) {
        if (value >= end) {
            Log.d("TTT", "Value : " + value + " | Compared: " + end);
            throw new IllegalArgumentException(message);
        }// w ww .ja va2 s. com
    }

    public static void lowerThan(int value, int end) {
        lowerThan(value, end, null);
    }
}

Related Tutorials