Computer Science 202
Introduction to Programming

Fall 2012, The College of Saint Rose

Seuss BlueJ Project

Click here to download a BlueJ project for Seuss.


Seuss Source Code

The Java source code for Seuss is below. Click on a file name to download it.


Seuss.java

/*
 * Example Seuss
 *
 * A program to print out a rhyme from "One Fish, Two Fish, Red Fish,
 * Blue Fish" by Dr. Seuss
 *
 * Jim Teresco, The College of Saint Rose, CSC 202, Fall 2012
 *
 * $Id: Seuss.java 1892 2012-09-06 04:08:44Z terescoj $
 */

public class Seuss {

    // our main method simply prints a series of sentences.
    public static void main(String[] args) {

    System.out.println("Did you ever fly a kite in bed?");
    System.out.println("Did you ever walk with ten cats on your head?");
    System.out.println("Did you ever milk this kind of cow?");
    System.out.print("Well, we can do it.");
    System.out.println(" We know how.");
    System.out.println("If you never did, you should.");
    System.out.println("These things are fun and fun is good.");
    System.out.println("\t-- Dr. Seuss\n\t\t\"One Fish, Two Fish, Red Fish, Blue Fish\"");
    }
}