Code example for ArrayList

0
    public static class TabsAdapter extends FragmentPagerAdapter 
            implements TabHost.OnTabChangeListener, ViewPager.OnPageChangeListener {
        private final Context mContext;
        private final TabHost mTabHost;
        private final ViewPager mViewPager;
        private final ArrayList<TabInfo> mTabs = new ArrayList<TabInfo>();
 
        static final class TabInfo { 
            private final String tag;
            private final Class<?> clss;
            private final Bundle args;
 
            TabInfo(String _tag, Class<?> _class, Bundle _args) {
                tag = _tag;
                clss = _class;
                args = _args;
            } 
        } 
 
        static class DummyTabFactory implements TabHost.TabContentFactory {
            private final Context mContext;