Alright, someone pm'd me with a program that they want to speed up in java. I have no clue where to start because when I copy and paste the program it gives me an error that the SpikeLib package doesn't exist. i'm thinking he is in a class where they were able to download this package and I don't have access to it. Here is the program:
He wants it to run 50 times faster. Mooret, if you're out there, I've got the whole AO crew working on your prog, so it should be solved in not time.Code:import SpikeLib.*; import corejava.Console; public class SquareSpike { public static void main (String args []) { SpikeWindow window ; Spike mySpike ; mySpike = new Spike (); window = new SpikeWindow (); window.addSpike (mySpike); int sides; sides = Console.readInt("Enter Number Of Sides"); window.show(); for (int i = 0; i < sides; i++) { mySpike.moveEast(); } for (int i = 0; i < sides; i++) { mySpike.moveNorth(); } for (int i = 0; i < sides; i++) { mySpike.moveWest(); } for (int i = 0; i < sides; i++) { mySpike.moveSouth(); } } }
Thanks for the help.




Reply With Quote