Online Java Compiler By
JavaTpoint.com
public class FloorDivExample1 { public static void main(String[] args) { int x = 25; int y= 3; // 25/3 value is 8.33 so floor(8.33) = 8 System.out.println(Math.floorDiv(x, y)); } }
Output