Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Transactions On Large Scale Data And Knowledge Centered Systems Xxviii Special Issue On Database And Expert Systems Applications Lncs 9940

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Qimin Chen

1st Edition

3662534541, 978-3662534540

More Books

Students also viewed these Databases questions