I have a question, I'm told to do the following.
make a method called assign initialize a new variable from it.
assign: to initialize a new variable and assign a value to it. Example: assign
x y, where x is the variable and y is the value assigned. The value could be
an integer number, or a string
I have wrote something like this but its obviously really wrong, can anyone help on how to do this?
public void assign(String varType, String varName){
varType varName = new varType;
}