GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

[12 points] Generics  A bubble tea shop serves customers fir…

[12 points] Generics  A bubble tea shop serves customers first-come, first-served. Write a generic class BobaLine that models a fixed-capacity order line (a FIFO queue) using an ArrayList for the underlying representation. An enqueue is a customer joining the line; a dequeue is the barista serving the next order.  Implement: The constructor, which takes the capacity as an argument. enqueue — adds the passed-in argument to the tail of the line if there is room; otherwise prints “Order line is full. Cannot add new order.” dequeue — if the line is not empty, removes the element at the head of the line and returns it; otherwise prints “Order line is empty. Cannot serve an order.” and returns null. isEmpty — returns true if the line is empty and false otherwise. As a reminder, the ArrayList class provides the following methods that you are can also use. add(E elem) — appends elem to the current end of the list remove(int index) — removes the element at the specified position and returns it size() — returns the number of elements in the list isEmpty() — returns true if the list is empty and false otherwise

Read Details

Statements that explain how the speaker feels without passin…

Statements that explain how the speaker feels without passing judgment on the receiver are called I-STATEMENTS.

Read Details

Reminder:    Have you done Start Here Bonus A?           Yes…

Reminder:    Have you done Start Here Bonus A?           Yes or no   ___________ Bonus A is Due:  Sat. Aug. 22   for 5 bonus points   or   if received by Wed. Aug. 26 for 2.5 bonus points

Read Details

Sending messages through facial expressions, body language,…

Sending messages through facial expressions, body language, gestures, tone, and volume of voice is NONVERBAL COMMUNICATION.

Read Details

Having a NEGATIVE OUTLOOK and FOCUSING ON THE BAD aspects of…

Having a NEGATIVE OUTLOOK and FOCUSING ON THE BAD aspects of most situations.

Read Details

Pressure put on yourself to complete a task or goal is EXTER…

Pressure put on yourself to complete a task or goal is EXTERNAL PRESSURE. 

Read Details

The ability to BOUNCE BACK from traumatic or stressful event…

The ability to BOUNCE BACK from traumatic or stressful events.

Read Details

Mental processes used to CREATE conflict, GOOD feelings, or…

Mental processes used to CREATE conflict, GOOD feelings, or POSITIVE thoughts is known as DEFENSE MECHANISMS.

Read Details

Reminder:    Have you done Start Here Homework B?           …

Reminder:    Have you done Start Here Homework B?           Yes or no   ___________   Start Here Homework  B  (based on our Grade point system / syllabus)   is Due:   Sun. Aug. 23

Read Details

POSITIVE EMOTIONS linked to contentment with life.

POSITIVE EMOTIONS linked to contentment with life.

Read Details

Posts pagination

Newer posts 1 … 65 66 67 68 69 … 93,427 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top