Hi, i am having trouble getting the following String array to run correctly and having compile error. My compile error is posted below.
stapler.java:94: error: cannot find symbol
System.out.println("Product name: " +stapler.getnames[0]);
^
symbol: variable getnames
location: variable stapler of type Stapler
stapler.java:105: error: cannot find symbol
System.out.println("Product name: " +stapler1.getnames[1]);
^
symbol: variable getnames
location: variable stapler1 of type Stapler
stapler.java:116: error: cannot find symbol
System.out.println("Product name: " +stapler2.getnames[2]);
^
symbol: variable getnames
location: variable stapler2 of type Stapler
3 errors