hope you fine and well
suppose i have the following class :
public class MainActivity extends AppCompatActivity {
public List<Student> DisplyOnTextView( List< Student > students) {
return students;
}
}
the function is receive the List student.
and suppose that i have also the following class :
public class CustomAdapter extends PagerAdapter {
public Object instantiateItem(ViewGroup container, int position) {
}
}
how i can return the List students from the function of the first class to the function in the second class ?
regards .