///////////////////////////////////////////////////////////////////////////////
//
ALL STUDENTS COMPLETE THESE SECTIONS
// Main Class File:
AmazonStore.java
// File:
User.java
// Semester:
CS367 Spring 2015
//
// Author:
Thomas Whitburn
// CS Login:
whitburn
// Lecturer's Name:
Jim Skrentny
//
//////////////////// PAIR PROGRAMMERS COMPLETE THIS SECTION ////////////////////
//
// Pair Partner:
Haomin Li
// Email:
[email protected]
// CS Login:
haomin
// Lecturer's Name:
Jim Skrentny
//
//////////////////////////// 80 columns wide //////////////////////////////////
import java.util.Random;
import java.io.PrintStream;
/**
* The User class uses DLinkedList to build a price ordered list called
* 'wishlist' of products
* Products with higher Price fields should come earlier in the list.
*/
public class User {
//Random number generator, used for generateStock. DO NOT CHANGE
private static Random randGen = new Random(1234);
private String username;
private String passwd;
private int credit;
private ListADT<Product> wishList;
/**
* Constructs a User instance with a name, password, credit and an empty
*
wishlist.
*
* @param username name of user
* @param passwd password of user
* @param credit amount of credit the user had in $
*/
public User(String username, String passwd, int credit){


You've reached the end of your free preview.
Want to read all 4 pages?
- Spring '08
- MarvinSolomon
- Data Structures, Login, Wishlist, InsufficientCreditException