Instantly share code, notes, and snippets.

View pyramid.java
import java.util.*;
public class pyramid
{
//ArrayList<Integer> row1 = new ArrayList<Integer>();
//ArrayList<Integer> row2 = new ArrayList<Integer>();
public pyramid(){
ArrayList<Integer> row = new ArrayList<Integer>();
int totalRows = 6;
row.add(2);
printArray(row,totalRows);
View sortPrimes.java
public class sortPrimes
{
public sortPrimes(){
int[] primeSet = new int[10];
primes(primeSet);
for(int i = 0; i < 10; i++){
System.out.print(primeSet[i] + ", ");
}
sort(primeSet);
View stockMarket.pde
char letter;
String sym = "";
String savedKey = "";
int boxX = 10;
int boxY = 75;
int displayWidth = 200;
int price = 0;
String beta = "";
String name = "";
ArrayList<String> listA = new ArrayList<String>();
View bands.pde
//controls:
//click to freeze or unfreeze
//click s, w, or b to change stroke color
//Imports needed
import ddf.minim.analysis.*;
import ddf.minim.*;
//object needed to access microphone
AudioInput input;
View spaceInvaders.java
import javax.swing.JFrame;
public class Starter extends JFrame {
public Starter()
{
add(new Board());
setTitle("Board");
setDefaultCloseOperation(EXIT_ON_CLOSE);
setSize(500,500);
View EAUsername.java
import java.util.*;
/**
* Write a description of class strings here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class strings
{
public static void main(String args[]){
View passwordGenerator.java
/**
* various math equations
*
* @author (Erica)
* @version (9/18/18)
*/
public class objectClass
{
public objectClass(){
View puzzle.java
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import java.awt.Dimension;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.event.MouseListener;
View photoshop.java
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import java.awt.Dimension;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.event.MouseListener;
View connectFour.java
import java.util.*;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.WindowConstants;
import java.awt.Dimension;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.event.MouseListener;