how to start a method from a class to another class android studio : how do i start getdata() method to another class. I want to show the output to a listview which is in another java class

**tab1Background.java**
    
    public class tab1Background extends Activity{
    ListView lv;

    lv = (ListView) findViewById(R.id.lv);
    ....some code here

        public void getdata() {

        ....some code here 

        }
    }

**tab1report.java**
   
    public class tab1report extends Fragment {

    ....some code here
    }