boglin: (Default)
boglin ([personal profile] boglin) wrote2005-04-19 10:26 pm

New pope, eh?

Well, that's a surprise.

After all -

NOBODY expects the Spanish Inquisition!

[identity profile] liz-lowlife.livejournal.com 2005-04-19 11:13 pm (UTC)(link)
Oh, I think you will find that in reality....
....NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!
NO! I'M LARS ULRICH!!

[identity profile] sciamachy.livejournal.com 2005-04-19 11:27 pm (UTC)(link)
Ah, but:

public class WhoAmI {
    public void go(){
        System.out.println("NO! I'M LARS ULRICH!!");
        go();
    }

    public static void main(String[] args){
        new WhoAmI().go();
    }
}

[identity profile] sciamachy.livejournal.com 2005-04-19 11:29 pm (UTC)(link)
Or even:
public class WhoAmI {
    public void go(){
        while(true)
            System.out.println("NO! I'M LARS ULRICH!!");
    }

    public static void main(String[] args){
        new WhoAmI().go();
    }
}

[identity profile] liz-lowlife.livejournal.com 2005-04-19 11:33 pm (UTC)(link)
With your non- 'keep it live' geekery-sorcery, you are confusing me, Sir.

I am but a humble drummer.

[identity profile] sciamachy.livejournal.com 2005-04-20 07:00 am (UTC)(link)
Both classes define a method which repeatedly prints out "NO! I'M LARS ULRICH!!", called go(). The main(String[] args) method is the one that is set in motion by default, and that creates an instance of the class and sets its go() method in motion. So, in BASIC, it's essentially:
10 PRINT "NO! I'M LARS ULRICH!!"
20 GOTO 10

just rendered into Java.

[identity profile] liz-lowlife.livejournal.com 2005-04-20 04:53 pm (UTC)(link)
Now that, I *do* understand!

I had a ZX Spectrum as a tiddler!

[identity profile] sciamachy.livejournal.com 2005-04-20 07:02 am (UTC)(link)
Technically, I think the first one's one to avoid as it calls itself recursively but has no way to get out of the loop, so there's a good possibility it'd fall over having claimed all your memory. BICBW.