problem with precision loss
public class getMakeModel
{
public static void main(String[] args)
{
ConsoleIO console = new ConsoleIO();
String input;
String make;
String model;
String plate;
int plate2;
double remainder;
double sum;
double num123;
//grab make
System.out.print("Make = ");
make = console.readLine();
//grab model
System.out.print("\nModel = ");
model = console.readLine();
//grab plate number
System.out.print("\nThree letters for plate number = ");
plate = console.readLine();
System.out.print("\nThree digit number of license place = ");
plate2 = console.readInt();
//code for license plate...?
int num1 = plate.charAt(0);
int num2 = plate.charAt(1);
int num3 = plate.charAt(2);
num123 = (int)(num1 + num2 + num3);
sum = num123 + plate2;
remainder = sum % 26;
double E = (int)(remainder + 65);
char F = (int) E;
System.out.print("\n" + plate + " = " + F + sum);
}
}
now apparantly i have possible precision lost in the line char F = (int) E;
i don't understand why i have precision loss, and how can i fix it?

