I know that you add an L to a value if it exceeds the scope of an integer but you still have to print it as such. I understand the concept of doing it when you're just printing out a plain number.
What about when you're using a defined variable instad?
Say I have something like.
double a = 2.5;
System.out.println(a);
I want "a" to be printed out as a integer.
Thanks for any answers in advance :)