Nov. 7th, 2007

Oh dear

Nov. 7th, 2007 02:33 pm
davidn: (Jam)
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);

   }

}

Expand Cut Tags

No cut tags

May 2020

S M T W T F S
     12
3456789
1011121314 15 16
171819 20 212223
24252627 28 2930
31      

Most Popular Tags

Page Summary

Style Credit

Page generated Jun. 23rd, 2025 08:45 am
Powered by Dreamwidth Studios