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 8002071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:15:30+00:00 2026-06-04T16:15:30+00:00

Well, like the title says I want to populate a ListView with the data

  • 0

Well, like the title says I want to populate a ListView with the data that is in multiple arrays. The ListItem structure looks like:

*Person Name

*01234567

*Boulevard of Broken Dreams, NY


and all the data for person name, phone number and adress is in seperate arraylists.
So, I have arraylists personsArr, phonesArr, adressArr and I want to display that data in the ListView for each person that have a phone number and adress.

  • 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-04T16:15:31+00:00Added an answer on June 4, 2026 at 4:15 pm

    Use single class that have String persons, phones, address…

    See NewsBean.java

    public class Items {
    
    private String name;
    private int phoneNo;
    private String address;
    

    }

    -Create getters and Setters Methods for name,phoneNo,address

    Now add data in list

    List<Items> list = new ArrayList<Items>();
    
     Items objItems = new Items();
     objItems.setName("Name"); 
     objItems.setPhoneNo(12345);
     objItems.setaddress("adress");
    
     list.add(objItems);  
    

    Now get data from list

    Items objItems =(Items)list.get(index);
    String name = objItems.getName(); 
    int phoneNo=objItems.getPhoneNo();
    String address=objItems.getaddress();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, like the title says, I want to launch the same java program on
Well, the question says it all. What I would like to do is that,
Like the title says. Reason I ask is that we're converting PDFs to formatted
Well, like the title says, i got some performance problems while executing queryForAll on
Well, as the title says. I'd like to use a script component destination, and
Well like the title says, how can i check it? i have started something
Like the title says: My web service method call looks like proxy.BeginGetWhatever(int param) {
Well like the title says, how can I connect Outlook with asp.net or any
Well, like the title shown, what's the difference between the two class instance variables
I think the title says it, as well...but of course some more explanation assume

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.