package com.example.android.androidsimulator;

public class ContactsAdapter  {

}
@@ -44,38 +44,1156 @@
 r;%0A%0A
-public class ContactsAdapter  %7B%0A
+import android.app.Activity;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport android.widget.ArrayAdapter;%0Aimport android.widget.TextView;%0A%0Aimport java.util.ArrayList;%0A%0Apublic class ContactsAdapter  extends ArrayAdapter%3CContacts%3E %7B%0A%0A    public ContactsAdapter(Activity context, ArrayList%3CContacts%3E contacts) %7B%0A        super(context, 0, contacts);%0A    %7D%0A%0A    @Override%0A    public View getView(int position, View convertView, ViewGroup parent) %7B%0A        View listItemView = convertView;%0A%0A        if (listItemView == null) %7B%0A            View itemListViewm = convertView;%0A            listItemView = LayoutInflater.from(getContext()).inflate(%0A                    R.layout.list_contacts, parent, false);%0A        %7D%0A%0A        Contacts currentContact = getItem(position);%0A%0A        TextView nameTextView = (TextView) listItemView.findViewById(R.id.name_textView);%0A        TextView numberTextView = (TextView) listItemView.findViewById(R.id.number_textView);%0A%0A        nameTextView.setText(currentContact.getName());%0A        numberTextView.setText(currentContact.getNumber());%0A%0A        return listItemView;%0A    %7D
 %0A%7D

Update ContactsAdapter.java