How to Groovy: Integer, Float, Double MIN and MAX Value

How to Groovy:

  • Integer (MIN and MAX Value)
  • Float (MIN and MAX Value)
  • Double (MIN and MAX Value)

class GroovyTut {
static void main(String[] args) {

  println("Hello World"); 
    
  // MIN and MAX Value
  println("Max Integer Value" + Integer.MAX_VALUE);
  println("Min Integer Value " + Integer.MIN_VALUE);
 
  println("Max Float Value" + Float.MAX_VALUE);
  println("Min Float Value" + Float.MIN_VALUE);
 
  println("Max Double Value" + Double.MAX_VALUE);
  println("Min Double Value" + Double.MIN_VALUE);
 
    }
}