Hi again :-)
Your assignment says: "Declare three
character variables named var1, var2, and var3 respectively;
Store the
character "a" into var1, "b" into var2, and "c" into var3;
Print the following output, without using literal characters "a", "b" and "c" in the print() or println() method:"
Ok?
So lets first look at the 8 primitive datatypes for Java:
boolean
char
byte
short
int
long
float
double
You are saying: create me
ant integer (int) and put a character in it...
You can't do that you have to say something like
char var1 = 'a';
instead of
int var1 = a;
An int is numeric, it is not a character.