stackLast method

String stackLast()

Implementation

String stackLast() {
  if (stack.isEmpty) return "";
  return stack[stack.length - 1];
}