* @author dsanchez
public class GroupTicket extends AdvanceTicket cfw_
private int quantity;
public GroupTicket(String venue, String event, String date, double
basePrice, double discount, int quantity)
/ Extending AdvanceTicket because it alr
* Created by mrtreazy3000 on 12/2/2016.
/* This project is a means of emulating a simple user interface of real stock
public class Po
* Created by mrtreazy3000 on 11/7/2016.
public class StockHolding
public StockHolding(String tic, int numberShares, double initPrice)
public class PortfolioList
private ArrayList<StockHolding> stockHolder;
stockHolder = new ArrayList<>();
public void add(StockHolding stock)
* Created by mrtreazy3000 on 12/3/2016.
/This method is invoked when the buy button is pressed on the mainGUI.
public class BuyAndSellButton extends PortfolioList cfw_
public static StockHolding buy(StringSet stock, StringSet share, StringSet
CS 61B Reader #2
Data Structures (Into Java)
Paul N. Hilfinger
University of California, Berkeley
Acknowledgments. Thanks to the following individuals for finding many of the
errors in earlier editions: Dan Bonachea, Michael Clancy, Dennis
CSC 249 Lesson 1 Lab
Compute Directions and Distance
Take a detailed requirements and system design specification and code
up a small program
Understand use of methods to breakdown a problem into smaller pieces
to code and test
Read this Requiremen
CSC 249 Java Code Style Guidelines
Practicing good programming style and following Java conventions helps you
better develop and maintain your code. It is important to establish good
programming practices now rather than trying to break bad habits later.
CSC 249 Lesson 1 Quiz Questions
Reinforce the language of computers and programming, as opposed to
just learning a new computer language.
Download this document and supply the answers in the space provided after
the Answer: prompt. The MS
1. What is a zero-day attack?
Answer: Attack that exploits previously known vulnerability, so the victims have no time (zerodays) to prepare for or defend against ha attacks.
2. Describe a typical dynamic web application infrastructure and how it operates
public class Vigenere cfw_
private static final int LETTERS_IN_ALPHABET = 26;
private static final int ASCII_RANGE = 256;
CSC 249 Project 2
Patience Sorting Card Game
Understand how to use a Stack.
Use MyStack which reveals the implementation of an array-based stack that
the Java API Stack hides.
Use a Comparable MyStack class, so that it can get added to
CREATE TABLE MOVIE (MOVIE_ID int not null primary key GENERATED ALWAYS AS
IDENTITY (START WITH 1, INCREMENT BY 1), MOVIE_NAME varchar(100), RATED
CREATE TABLE MOVIE_REVIEW (REVIEW_ID int not null primary key GENERATED ALWAYS AS IDENTITY (STAR
public class StringSet extends ArrayList<String>
public StringSet() cfw_
public String toString()
String s = ";