public Task pushTask(String taskName,String descriptionFormat,Object... args){
  clearOutput();
  String description=String.format(descriptionFormat,args);
  String indented=indent(description + "... ");
  out.print(indented);
  Task t=new Task(taskName,descriptionFormat,args);
  stack.push(t);
  currentOutput=t;
  return t;
}

public Task pushTask ( String taskName , String descriptionFormat , Object ... args ) { clearOutput ( ) ; String description = String . format ( descriptionFormat , args ) ; String indented = indent ( description + "... " ) ; out . print ( indented ) ; Task t = new Task ( taskName , descriptionFormat , args ) ; stack . push ( t ) ; currentOutput = t ; return t ; }
pushes a task onto the task stack . < p > moe ' s ui operates on a stack model . tasks get pushed onto the stack and then what is popped must be the top task on the stack , allowing nesting only .
