davidn: (Jam)
davidn ([personal profile] davidn) wrote2007-11-07 02:33 pm
Entry tags:

Oh dear

I know that finding yourself laughing at code is a sure sign that you should book yourself into the nearest mental institution as soon as possible, but I had to save this quite frankly incredible offering from the Java forums here. This leaves me in the uncomfortable position of either posting something that will appear as gibberish or having to explain its utter hilarity from my viewpoint, but I'll just hope that people will understand its quite astounding uselessness.

package javaapplication3;
import java.io.*;
public class Main {

   public Main() {
   }

   public static void main(String[] args)throws IOException
   {
    int count=0;
    String w= "today is a short day";
    for(int m=0 ; m<w.length()-1 ; m++)
    {


     count++;
    }
    System.out.println(count);

   }

}

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting