Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: (TIMTOWTDI / Golf / Obfu) Airplanes in class

by krisahoch (Deacon)
on Oct 03, 2003 at 21:16 UTC ( #296395=note: print w/replies, xml ) Need Help??


in reply to (TIMTOWTDI / Golf / Obfu) Airplanes in class

Awww, what the hey.....TIMTOWTDI right?

use strict; use Inline Java => << 'END_OF_JAVA'; public class FoxTrot{ private int start = 1; private int times = 0; /** Print the thing */ public void DoPunishment(){ for(start = 0; start != this.getNumberOfTimes(); start++){ System.out.println("I will not throw paper airplanes in class.") +; } }; /** Return the number of times the thing will be printed */ public int getNumberOfTimes(){ return times; } /** Set the number of times to print the thing */ public int setNumberOfTimes(int number) { times = number; return this.getNumberOfTimes(); } } END_OF_JAVA my $Fox = new FoxTrot; print $Fox->setNumberOfTimes('500'); print $Fox->DoPunishment();
;)

Update: Just made it a little easier to read

Kristofer A. Hoch
Quality Assurance Professional
kristoferhoch@yahoo.com

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://296395]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2022-05-29 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?