Specifications
Sun Services
Java™ Programming Language
Module 13, slide 33 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
The SyncStack Class
This is a sketch of the SyncStack class:
public class SyncStack {
private List<Character> buffer = new ArrayList<Character>(400);
public synchronized char pop() {
// pop code here
}
public synchronized void push(char c) {
// push code here
}
}










