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

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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2023-10-03 03:42 GMT
Find Nodes?
    Voting Booth?

    No recent polls found