Page 2 of 2

Posted: Tue Oct 14, 2008 1:17 am
by TheRileyDuo

Code: Select all

import java.util.*;
/**
*  class name: FixIt
*  @author TheRileyDuo
*  @version 1.0 FINAL
*  @description This class FIXES IT
*/
public class FixIt{
     private boolean isItFixed?;
     private static float volumeLevel;
     public FixIt(){
           isItFixed?=false;
           volumeLevel=0;
           Fixed?();
     }
     public void Fixed?(){
         if(isItFixed?)
            volumeLevel=0;
         else
            FIXIT!();
     }
     public void FIXIT!(){
         Random rand=new Random();
         //Insert fixings right here. Minor bug. Fix it later.
         volumeLevel+=rand.nextFloat();
         Fixed?();
     }
}



Not the best javadocing ever done, but I think it gets the idea across. BTW, watch the SNL weekend update for another inside joke.

Posted: Tue Oct 14, 2008 1:29 am
by TheRileyDuo
By the way, all of the spacing was fine in the message box when I made it, but the poster pushed all of the spaces back.

Posted: Tue Oct 14, 2008 2:30 am
by NeoThermic
TheRileyDuo wrote:By the way, all of the spacing was fine in the message box when I made it, but the poster pushed all of the spaces back.


The [code] tag is there for a reason. ;)

NeoThermic

Posted: Tue Oct 14, 2008 1:08 pm
by Greeba
Nimbus wrote:Jedi mind trick=dedwinia?

You might think that, but I couldn't possibly comment.

[/urquhart]

Posted: Fri Oct 17, 2008 4:40 pm
by SoujiroSeta

Code: Select all

(define lcar car)
(define (lcdr llist) (force (cdr llist)))
(define (llength llist) (if (not (pair? llist))
                                    0
                                    (+ 1 (llength (lcdr llist)))))

(define vote-intensions (cons 1 (delay vote-intensions)))
(pretty-print `(my-vote is: +,(llength vote-intensions) ^_^Y))