Java telling us The Tale of Alan A’Dale

Java telling us The Tale of Alan A'Dale!

I was sitting at the Boatdeck Cafe this morning thinking of all the work I was supposed to be doing, and it was so overwhelming I decided to write a nonsensical Java application to tell us The Tale of Alan A'Dale instead.

Feel free to paste the code into your favourite text editor then execute it on your machine if you wish to feel the wondrousness. That is a word isn't it?

/**
 * Tells us The Tale of Alan A'Dale
 * Adapted by Ruben Schade 2009
 */

public class AlanADale {
  private String theTale = "n";

  public String tellUsTheTale() {
    for (int count = 0; count < 3; count++)
      theTale += "This is The Tale… ";
    theTale += "of Alan A'Dale!n";
    return theTale;
  }

  public static void main(String[] args) {
    AlanADale NotOnlyButAlso = new AlanADale();
    while(true)
      System.out.println(NotOnlyButAlso.tellUsTheTale());
  }
}

Imprint

This is one of about 5000 posts on Rubénerd. View the home page for the latest, or related posts also tagged with:

If you liked this post, feel free to buy me a coffee, leave me a comment on Twitter, or email me at weblog2017@rubenschade.com. Thanks :).