Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8814845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:13:50+00:00 2026-06-14T04:13:50+00:00

i have problem in data binding in expandable list view. here i use ArrayList<ExpandListGroup>

  • 0

i have problem in data binding in expandable list view. here i use

ArrayList<ExpandListGroup> list = new ArrayList<ExpandListGroup>();

ExpandListGroup for data binding. but in sum 2d array there is null value.Data is coming dynamically .

eg:

String [] [] array1 = [[one,two,three,null],[seven,six,null]] ;

I want to remove the null column from this two dimensional array

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T04:13:52+00:00Added an answer on June 14, 2026 at 4:13 am

    You need to take a intermediate arraylist and result array and follows the below steps.

    1. First copy the source array(containing null) into arraylist.
    2. Then remove null from arraylist
    3. Then create new array and copy data from arraylist to array.

      private void remove_nulls()
      {

           String [] [] array1 = {{"one","two","three",null},{"seven","six",null}} ;
           ArrayList<ArrayList<String>> contact = new ArrayList<ArrayList<String>>();
      
           for(int i=0;i<array1.length;i++)
           {
               ArrayList<String> con = new ArrayList<String>();
               for(int j=0;j<array1[i].length;j++)
               {
      
                   if(array1[i][j]!=null)
                   con.add(array1[i][j]);
               }
               if(con.size()>0)
                   contact.add(con);
           }
           String [] [] array2 = new String[array1.length][];
           for(int i=0;i<contact.size();i++)
           {
               array2[i]=new String[contact.get(i).size()];
               for(int j=0;j<contact.get(i).size();j++)
               {
                   array2[i][j]=contact.get(i).get(j);
               }
           }
      
       }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a grid view which I am binding with data table. My problem
Hello I have problem with binding data to Listbox. In shortway... I want list
I have a problem in binding JSON data to KENDO Pie Chart. I have
I am a learner and i have a problem data binding the dataset. Please
I have a problem with binding data using BindingSource, typed dataset and DataGridView. My
I am having major problem in Data Binding. I have a stackpanel with an
In my MVC application I have a problem with passing data from view to
I have a problem with my data binding, probably a small one. I have
I have a problem when binding the data in gridview. I am attempting to
Hi I have a little problem. I'm using data binding to retrieve data from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.