+ 1

Where is my mistake in my programme

https://code.sololearn.com/c0Uka0G6dXn3/?ref=app

6th May 2020, 5:23 PM
Basudev paul
Basudev paul - avatar
2 Respostas
+ 8
Packages are not supported here so please remove that line. System.out.println(myDouble); System.out.println(myInt); In println that is small 'L' and not capital 'i'.
6th May 2020, 5:27 PM
Avinesh
Avinesh - avatar
+ 1
public class TypeCasting { public static void main(String[] args) { double myDouble = 2.0462; int myInt = (int)myDouble; System.out.println(myDouble); System.out.println(myInt); } }
6th May 2020, 5:54 PM
Dasarath Singh