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 hashTable; | |
import java.util.*; | |
import java.io.*;// Import the Scanner class to read text files | |
import java.net.*; | |
public class StockMarketNew { | |
//arraylists | |
static ArrayList<String> tickers = new ArrayList<String>(); | |
ArrayList<String> price = new ArrayList<String>(); | |
ArrayList<String> pe = new ArrayList<String>(); |
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 hashTable; | |
import java.awt.Color; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
import javax.swing.WindowConstants; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.Point; |
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 hashTable; | |
import java.awt.Color; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
import javax.swing.WindowConstants; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.Point; |
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 hashTable; | |
import java.util.ArrayList; | |
public class FreeResponse | |
{ | |
static ArrayList<String> artistNames = new ArrayList<String>(); | |
// static ArrayList<Integer> artistCount = new ArrayList<Integer>(); (MAKE AN ARRAY OF LENGTH ARTISTNAMES INSTEAD) | |
// Driver code |
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 hashTable; | |
import java.net.*; | |
import java.io.*; | |
import java.util.StringTokenizer; | |
import java.util.Scanner; | |
public class StockMarketHash | |
{ | |
static HashTable h = new HashTable(20); |
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
import java.awt.Color; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
import javax.swing.WindowConstants; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.GraphicsEnvironment; | |
import java.awt.Point; | |
import java.awt.event.MouseListener; |
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
import java.awt.Color; | |
import javax.swing.JFrame; | |
import javax.swing.JPanel; | |
import javax.swing.WindowConstants; | |
import java.awt.Dimension; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.Point; | |
import java.awt.event.MouseListener; | |
import java.awt.event.MouseEvent; |
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
import java.awt.Color; | |
public class Bubble | |
{ | |
int x; | |
int y; | |
int radius; | |
int xSpeed; | |
int ySpeed; | |
Color c; | |
public Bubble(int x, int y){ |
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 LinkedList<E> { | |
Node head; // head of list | |
// Method to insert a new node | |
public void add(E data) { | |
// Create a new node with given data | |
Node new_node = new Node(data); | |
// If the Linked List is empty, | |
if (head == null) { | |
head = new_node; | |
} else { // Else traverse till the last node |
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
/** | |
* Write a description of class GuessingGame here. | |
* | |
* @Arjun Bhamra | |
* @9/6/19 --> 9/14/20 | |
*/ | |
import java.util.*; | |
import java.lang.String; | |
public class GuessingGame |