This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public class Race { | |
| public static void main(String[] args) { | |
| Race r = new Race(); | |
| try { | |
| r.beginRace(); | |
| } catch (InterruptedException e) { | |
| System.out.println("Unable to execute race..."); | |
| } | |
| System.out.println(rt.getWinnersList()); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Train t; | |
| void setup() { | |
| t = new Train(); | |
| size(500, 500); | |
| } | |
| void draw() { | |
| background(255); | |
| t.update(); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | void setup() { | |
| size(500, 500); | |
| } | |
| void draw() { | |
| background(255); | |
| float period = 50; | |
| float amplitude = 200; | |
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | float startAngle; | |
| float angleVel; | |
| float amp; | |
| void setup() { | |
| startAngle = 0; | |
| angleVel = 0.4; | |
| amp = 100; | |
| size(500, 500); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | String alphabet = "abcdefghijklmnopqrstuvwxyz"; | |
| void setup() { | |
| String plaintext = "happy monday, everyone!"; | |
| String ciphertext = encrypt(plaintext, 1); | |
| println(ciphertext); | |
| } | |
| void draw() { | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Notice: the Node should have a toString() method | |
| // which returns the <content> instance variable | |
| void setup() { | |
| Node a = new Node("123"); | |
| Node b = new Node("456"); | |
| Node c = new Node("789"); | |
| Stack s = new Stack(); | |
| s.push(a); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | abstract class Pokemon extends GameObject{ | |
| int currentHP; | |
| int maxHP; | |
| PImage leftImg, rightImg; | |
| float yVel; | |
| float GRAV = .5; | |
| float xVel; | |
| float xAcc; | |
| void moveRight() { | 
OlderNewer