Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVA I am currently trying to compile my ContactList class and I cannot figure out the Symbol not found error. What i am trying to
JAVA
I am currently trying to compile my ContactList class and I cannot figure out the Symbol not found error. What i am trying to do is implement an array list using the contact class that i created. So basically an arrayList of contacts. I am working on the toString method but the error i am getting is the symbol not found and i cant figure out whats wrong.
Line 14: Col 2 3 sh -c javac -classpath .:target/dependency/* d. \$(find . -type f-name ' .java') ./HW/HW1/ContactList. java:22: error: cannot find symbol str. append( currentContact.getFirstName() + " " + currentContact.getLastName() + " "); symbol: method getFirstName() location: variable currentContact of type Contact where Contact is a type-variable: contacts = new ArrayList (10); Contact extends object declared in class ContactList Note: ./HW/HW1/Main. java uses unchecked or unsafe operations
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started