Skip to content

Instantly share code, notes, and snippets.

View KevinTyrrell's full-sized avatar
🎯
Focusing

Kevin Tyrrell KevinTyrrell

🎯
Focusing
  • San Jose, California
View GitHub Profile
List[] aidsArray = new Collection[10];
for (List i : aidsArray)
{
ListIterator iter = i.ListIterator();
while (iter.hasNext())
{
// operation here
}
public interface Listener
{
public void fire();
}
import java.util.Collections;
import java.util.LinkedList;
import java.util.Random;
import java.util.Stack;
class Toast
{
public static void main(String[] args)
{
final long SIMULATION_ATTEMPTS = 100000000L;
import java.util.Collections;
import java.util.LinkedList;
import java.util.Random;
import java.util.Stack;
class Toast
{
public static void main(String[] args)
{
final long SIMULATION_ATTEMPTS = 10000000L;
/*
Make program which asks for student's names,
then when the user types "done",
prints them all out in the console window.
*/
import java.util.LinkedList;
import java.util.Scanner;
# Analysis: I had a lot of fun re-designing assignment 7 in this assignment. I created a Rectangle2D class and made it so that the back-end communicated with the front end. When the back-end was updated, so was the front-end. The only problem at that point was making sure I only used the back-end variables are didn't touch the front end.
# Design: Made a Rectangle2D class. Allowed the front end variables to be setup inside that class. Finally, added the ability for the text input fields to directly have access to the last clicked rectangle.
# Coding: Please indent and format your code properly
from tkinter import *
class Rectangle2D:
import java.io.Serializable;
/**
* Project: SecretValues
* Author: User
* Created: May 17, 2017
*/
public final class SecretInteger implements SecretValue<Integer>,
Cloneable, Comparable<SecretInteger>, Serializable
{
import java.io.Serializable;
/**
* Project: SecretValues
* Author: User
* Created: May 17, 2017
*/
public final class SecretInteger implements SecretValue<Integer>,
Cloneable, Comparable<SecretInteger>, Serializable
{
import java.util.Arrays;
public class Combinatorics
{
public static void main(String[] args)
{
final String[][] champs = new String[][] {
{ "Support#1", "Support#2", "Support#3" },
{ "Bruiser#1" },
{ "ADC#1", "ADC#2" }
final String[][] clothing = new String[][] {
{ "Cap", "Bandana" },
{ "Vest", "Blazer", "T-Shirt" },
{ "Jeans", "Shorts" },
{ "Shoes" }
};
int permutations = 1;
for (final String[] i : clothing)
permutations *= i.length;