112k views
21 votes
Write a Java expression that converts the value of 'y' into an integer, and assigns the value to 'x'.

1 Answer

5 votes


\huge{\purple{\underline{\underline{\mathfrak{\red{\bigstar answer:: \bigstar}}}}}}

int y = (int) y;

int x = y;

Hope it helps..

User Mpolat
by
4.1k points