Online Java Compiler By
JavaTpoint.com
public class ToIntExactExample1 { public static void main(String[] args) { long a = 230; System.out.println(Math.toIntExact(a)); } }
Output