double literals are defined by using the suffix D or d, or by using a real number:

double d = 30.5D;