<<< Implicit Casting Examples | Index | Explicit casting examples >>> |
Explicit casting is done by special syntax in the .java source file:
(typename) expression
An expression is preceded with a data type between the parentheses. For example,
double dGrade = 93.75 int iGrade = (int) dGrade;
<<< Implicit Casting Examples | Index | Explicit casting examples >>> |