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();