// Example 1b of declaration and initialisation
import java.io.*;
class Dec1b {
public static void main (String [] args ) {
double x = -20.003;
char thisChar = 'W';
String myString = "Hello";
System.out.println(myString);
System.out.println(thisChar);
System.out.println(x);
} // end main
} // end of Dec1b
|