public static String displaySymbolTable(LocalVariableMap symbolTable){
  StringBuilder sb=new StringBuilder();
  Set<String> keys=symbolTable.keySet();
  if (keys.isEmpty()) {
    sb.append("None\n");
  }
 else {
    int count=0;
    for (    String key : keys) {
      sb.append("  [");
      sb.append(++count);
      sb.append("]");
      sb.append(" (");
      sb.append(determineOutputTypeAsString(symbolTable,key));
      sb.append(") ");
      sb.append(key);
      sb.append(": ");
      sb.append(symbolTable.get(key));
      sb.append("\n");
    }
  }
  return sb.toString();
}

public static String displaySymbolTable ( LocalVariableMap symbolTable ) { StringBuilder sb = new StringBuilder ( ) ; Set < String > keys = symbolTable . keySet ( ) ; if ( keys . isEmpty ( ) ) { sb . append ( "None\n" ) ; } else { int count = 0 ; for ( String key : keys ) { sb . append ( "  [" ) ; sb . append ( ++ count ) ; sb . append ( "]" ) ; sb . append ( " (" ) ; sb . append ( determineOutputTypeAsString ( symbolTable , key ) ) ; sb . append ( ") " ) ; sb . append ( key ) ; sb . append ( ": " ) ; sb . append ( symbolTable . get ( key ) ) ; sb . append ( "\n" ) ; } } return sb . toString ( ) ; }
display the keys and values in the symbol table
