Initials.java


Below is the syntax highlighted version of Initials.java from §1.1 Hello World.


/******************************************************************************
 *  Compilation:  javac Initials.java
 *  Execution:    java Initials
 *
 *  Prints the initials K D W.
 *
 ******************************************************************************/

public class Initials {

    public static void main(String[] args) {
        System.out.println("**        ***    **********      **             *             **");
        System.out.println("**      ***      **        **     **           ***           ** ");
        System.out.println("**    ***        **         **     **         ** **         **  ");
        System.out.println("**  ***          **          **     **       **   **       **   ");
        System.out.println("*****            **          **      **     **     **     **    ");
        System.out.println("**  ***          **          **       **   **       **   **     ");
        System.out.println("**    ***        **         **         ** **         ** **      ");
        System.out.println("**      ***      **        **           ***           ***       ");
        System.out.println("**        ***    **********              *             *        ");
    }

}


Copyright © 2000–2017, Robert Sedgewick and Kevin Wayne.
Last updated: Fri Oct 20 14:12:12 EDT 2017.