+ 3
How to typecast in java???
facing problem to typecast in java...
4 Respuestas
+ 7
If want to convert double to int
double a=3.14;
int b=(int)a;
System.out.println(b);
output : 3
In general keep that datatype to which you want to convert in the brackets and place the variable beside it. and store it in the new specified datatype variable
(Target-type)variable name;
+ 4
anytime :)
+ 3
thanks shikamaru
+ 2
is assigning value of one type of variable to another