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(480,480); | |
frameRate(64); | |
for(int x = 0; x < 8; x++){ | |
for(int y = 0; y < 8; y++){ | |
if((x+y)%2 == 0){ | |
fill(255); | |
} else { | |
fill(0); | |
} |
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 MaxThreads { | |
private static int count = 0; | |
public static void main (String[] args){ | |
while(true){ | |
Thread t = new Thread(new T(), ++count + ""); | |
t.start(); | |
System.out.println(count + ""); | |
} |
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 QuickSortMSP { | |
private static int noOfSwaps = 0; | |
public static void main(String[] args) { | |
int arr[] = {5,5,5,5,5}; | |
sort(arr); | |
System.out.print("Swaps: "+noOfSwaps); | |
} | |
public static void sort(int[] arr){ |
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
package pfirpfel; | |
import java.util.Iterator; | |
import java.util.NoSuchElementException; | |
public class ArrayIterator<E> implements Iterator<E> { | |
private E[] array; | |
private int index = 0; | |
private boolean lastRemoved = false; |
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
Tundra | Mirrorweave | |
---|---|---|
Underground Sea | Undermine | |
Badlands | Blightning | |
Taiga | Artifact Mutation | |
Savannah | Aura Mutation | |
Scrubland | Zealous Persecution | |
Volcanic Island | Prophetic Bolt | |
Bayou | Maelstrom Pulse | |
Tropical Island | Aether Mutation | |
Plateau | Master Warcraft |
NewerOlder