Hey guys i'm new at all this and this question i'm about to ask sounds really silly, but any help would be great, Iv'e been giving this assignment but i'm stuck on the last segment of code I also have to print a line of somthing the trouble is i'm not really 100%i know what this programme is doing thanks.
public class DataTypeDemo { public static void main (String [] args) { int x = 10; double d; d = x; double y; y = d; y = (int) d; float z; z = (int) 3.14; z = 3.14F; long id; id = 43251234153313241; id = 43251234153313241L; byte a, b, c; a = 10; b = 5; c = (byte) (a + b); c = (byte) (a + b); String name = "rich"; x = name; x = (int) name; } }