![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
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);
}
}
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);
}
}
no subject
Date: 2007-11-08 02:47 am (UTC)no subject
Date: 2007-11-08 04:47 am (UTC)no subject
Date: 2007-11-09 12:30 am (UTC)