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
| /** | |
| * Determines if the stock is good to buy (goes up at least 1 point for 5 days) and if a stock raises by 20% or more in the time. Find high and low. | |
| * | |
| * @Laura | |
| * @1.0 | |
| */ | |
| import java.net.*; | |
| import java.io.*; | |
| import java.util.StringTokenizer; | |
| import java.util.Scanner; |
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 Stocks here. | |
| * | |
| * @author (your name) | |
| * @version (a version number or a date) | |
| */ | |
| public class Stocks | |
| { | |
| public static void main (String[] args) { | |
| double high = 0.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
| /** | |
| * Program to return number of syllables in a word | |
| * | |
| * @Laura | |
| * @1.0 | |
| */ | |
| public class Syllables | |
| { | |
| /* Syllables are parts of words that have a vowel sound |
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
| /** | |
| * Asks user to input their family's age and displays the average of the ages. | |
| * | |
| * @Laura | |
| * @1.0 | |
| */ | |
| import java.util.*; | |
| public class Age { |
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 StarterStudent | |
| { | |
| public static void main (String[] args) { | |
| Scanner s = new Scanner(System.in); | |
| int gradYear = 0; | |
| System.out.print("Enter your graduation year: "); | |
| gradYear = s.nextInt(); | |
| Student student; | |
| if (gradYear >= 2022) { |
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 javax.swing.*; | |
| import java.awt.event.*; | |
| import java.awt.*; | |
| import java.util.*; | |
| import javax.swing.filechooser.*; | |
| import java.io.*; | |
| public class ChooseFile extends JPanel implements ActionListener { | |
| JButton go; | |
| String sourceFolder=""; |
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 void removeConsecutives(String[] a) | |
| { | |
| ArrayList<String> temp = new ArrayList<String>(); | |
| String prev = ""; | |
| for (int i = 0; i < a.length; i++) { | |
| if (!(a[i].equals(prev))) { | |
| temp.add(a[i]); | |
| } | |
| prev = a[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
| ============================================== | |
| StarterSpace Class: | |
| import javax.swing.JFrame; | |
| import java.awt.Color; | |
| public class StarterSpace extends JFrame { | |
| public StarterSpace() | |
| { | |
| add(new BoardSpace()); |
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
| /** | |
| * Sorts the array | |
| * | |
| * @Laura | |
| * @1.0 | |
| */ | |
| import java.util.*; | |
| public class Sort |
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
| /* Finds the random value generated in an array of randomly generated primes. | |
| * @Laura | |
| */ | |
| import java.util.*; | |
| public class Search | |
| { | |
| int counter = 0; | |
| int counter2 = 0; | |
| public Search() { |
OlderNewer