Java Number Range Check inRange(int value, int lowerBound, int upperBound)

Here you can find the source of inRange(int value, int lowerBound, int upperBound)

Description

in Range

License

Open Source License

Declaration

public static boolean inRange(int value, int lowerBound, int upperBound) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean inRange(int value, int lowerBound, int upperBound) {
        return (lowerBound <= value && value <= upperBound);
    }//w ww  .  j av a 2s .  c  om

    public static boolean inRange(double value, double lowerBound, double upperBound) {
        return (lowerBound <= value && value <= upperBound);
    }
}

Related

  1. inRange(int firstIndex, int secondIndex)
  2. inRange(int l, int u, int v, int... v_)
  3. inRange(int minValue, int maxValue, int value)
  4. inRange(int n, int lo, int hi)
  5. inRange(int num, int from, int to, int flag)
  6. inRange(int value, int min, int max)
  7. inRange(int value, int min, int max)
  8. inRange(int value, int min, int max)
  9. inRange(int value, int min, int max)