Here you can find the source of toInt(double value)
private static final int toInt(double value)
//package com.java2s; //License from project: Apache License public class Main { private static final int toInt(double value) { return (int) value; }//w w w .j a va 2 s.c o m }