Stack&&Queue

use exception (IllegalStateException)