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 static String buySellFinal(String ticker) { | |
| String offer = ""; | |
| String quote = getQuote(ticker); | |
| System.out.println(quote); | |
| //getting the values for each of the metrics below | |
| //System.out.println(quote.substring(quote.indexOf("peRatio")+10, quote.indexOf("peRatio")+17)); | |
| String peRatio = quote.substring(quote.indexOf("peRatio")+10, quote.indexOf("peRatio")+17); | |
| //System.out.println(peRatio); | |
| String debtToEquity = quote.substring(quote.indexOf("debtToEquity")+4, quote.indexOf("debtToEquity")+17); |
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.util.*; | |
| public class huffman { | |
| public static void main(String[]args) { | |
| String q = "aaaaabbbbbbbbbccccccccccccdddddddddddddeeeeeeeeeeeeeeeefffffffffffffffffffffffffffffffffffffffffffff"; | |
| // String q = "fffffffffffffffffffffffffffffffffffffffffffff"; | |
| ArrayList <String> letter = new ArrayList <String>(); | |
| ArrayList <Integer> letterAmt = new ArrayList <Integer>(); | |
| ArrayList<Node>hufftree = new ArrayList <Node>(); | |
| int [] letters = freq(q); | |
| for(int i = 0; i< letters.length-1; i++) { |
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.util.*; | |
| public class huffman { | |
| public static void main(String[]args) { | |
| String q = "aaaaabbbbbbbbbccccccccccccdddddddddddddeeeeeeeeeeeeeeeefffffffffffffffffffffffffffffffffffffffffffff"; | |
| // String q = "fffffffffffffffffffffffffffffffffffffffffffff"; | |
| ArrayList <String> letter = new ArrayList <String>(); | |
| ArrayList <Integer> letterAmt = new ArrayList <Integer>(); |
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.util.*; | |
| import java.io.*;// Import the Scanner class to read text files | |
| import java.net.*; | |
| public class phrog2 { | |
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 static int isBuy (double PErat, double MtBrat, double dtErat, double ROE) { | |
| if(PErat <= 58.00) { | |
| if(MtBrat <= 1.20) { | |
| if(dtErat <= 1.30) { | |
| if(ROE >= 11.20) { | |
| return 1; | |
| } | |
| } | |
| else { |
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; |
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 linkedListFinal; | |
| import java.util.*; | |
| public class FreeResponse | |
| { | |
| // Driver code | |
| public static void main(String[] args) | |
| { | |
| String[] artists = {"Ariana Grande", "Ariana Grande", "Ariana Grande","Halsey","Halsey", | |
| "Post Malone","Post Malone","Post Malone","Ariana Grande","Ariana Grande", |
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 linkedListFinal; | |
| import java.net.*; | |
| import java.io.*; | |
| import java.util.StringTokenizer; | |
| import java.util.Scanner; | |
| public class StockMarketHash | |
| { |
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 linkedListFinal; | |
| 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 linkedListFinal; | |
| 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; |
NewerOlder