17 lines
413 B
Java
17 lines
413 B
Java
// housekeeping/InitialValues2.java
|
|
// (c)2017 MindView LLC: see Copyright.txt
|
|
// We make no guarantees that this code is fit for any purpose.
|
|
// Visit http://OnJava8.com for more book information.
|
|
// Providing explicit initial values
|
|
|
|
public class InitialValues2 {
|
|
boolean bool = true;
|
|
char ch = 'x';
|
|
byte b = 47;
|
|
short s = 0xff;
|
|
int i = 999;
|
|
long lng = 1;
|
|
float f = 3.14f;
|
|
double d = 3.14159;
|
|
}
|