Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Finding a matching name in an ArrayList

807599Apr 6 2007 — edited Apr 6 2007
I am trying t traverse an array list and find a matching name but it is not working....can anyone point me in the right direction?
	for(int i=0;i<temp.size();i++)
			{
				Employee p=(Employee)temp.get(i);
				
				if(p.getLast()==name&&p instanceof HourlyEmploye
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 4 2007
Added on Apr 6 2007
9 comments
218 views