When assigning a float... for instance
Long = L;
L = 564732L;
is it always necessary to put 'L' at the end of the value (564732).....? and what about doubles? is it the same or?
Also can someone tell me what's wrong with my code here:
Code
class LtoD {
public static void main(String args[]) {
Long L;
Double D;
L = 100123285L;
D = L;
System.out.println("L and D: " + L + " " + D);
}
}
This post was edited by ferf on Oct 28 2015 02:21am