1

When trying to construct a class inside this method I get the error: non-static variable this cannot be referenced from a static context

public static void insert(int key, int value, Node[] hashTable){
        Node newNode = new Node(value);

I can't understand what I am doing wrong here, how else am I supposed to construct an object in this method, is it simply not possible?

chad
  • 117
  • 3

0 Answers0