double x = 9.0; int y = (int) x;?? June 21, 2017 mfadmin Java Programming Average Rating 0 out of 5 stars. 0 votes.You must log in to submit a review. double x = 9.0; int y = (int) x;?? works!