代写代考 import java.util.HashMap;

import java.util.HashMap;

public class SymbolTable {

Copyright By PowCoder代写 加微信 powcoder

* Constructor for the Symbol table
public SymbolTable() {
// Your code here

* Adds a symbol to the symbol table
* @param symbol The name of the symbol
* @param value The address for the symbol
public void addSymbol(String symbol, int value) {
// Your code here

* Gets a symbol from the symbol table
* @param symbol The name of the symbol
* @return The address for the symbol or -1 if the symbol isn’t in the table
public int getSymbol(String symbol) {
// Your code here
return -1;

程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com