Skip to content

Instantly share code, notes, and snippets.

/**
* 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;
/**
* 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;
/**
* 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
@lewil19
lewil19 / Age
Created October 17, 2017 18:09
/**
* Asks user to input their family's age and displays the average of the ages.
*
* @Laura
* @1.0
*/
import java.util.*;
public class Age {
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) {
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="";
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];
}
==============================================
StarterSpace Class:
import javax.swing.JFrame;
import java.awt.Color;
public class StarterSpace extends JFrame {
public StarterSpace()
{
add(new BoardSpace());
/**
* Sorts the array
*
* @Laura
* @1.0
*/
import java.util.*;
public class Sort