Question related to "Identifier expected "error
807606Mar 16 2007 — edited Mar 17 2007i have a simple class something like this
public class ChainingHashTable{
hashNode test_node = new hashNode();
test_node.key=222;
public class hashNode{
private Object data;
private hashNode next;
private int key;
public hashNode(){
data=null;next=null;key=0;
}
}
i was just testing my node by putting some integer value into key..and
i get an error at 'test_node.key=222;' .. it says identifier expected...
what am i doing wrong?