SYSC 2004 Lecture Notes - Lecture 11: Junit, Pop Quiz, Test Fixture

83 views2 pages

Document Summary

Class series is a class that represents a series of identical integer values. For example, if we had a series of four 7s, i. e. [7, 7, 7, 7] it would be represented by a value of 7 and a length of 4. public class series. /** the integer value stored in this series. private int value; /** the number of occurrences of the integer value in this series. private int length; * constructs a new series containing the specified number. * @param length the length of the series (>=0) * @param value the integer stored in this series. public series(int length, int value) { this. value = value; this. length = length; * returns the value stored in this series. * @return the value stored in this series. public int getvalue(){ return value; * determines if this series contains no occurrences of.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents

Related Questions