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

  • Home
  • SEARCH
  • 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 7922695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:03:20+00:00 2026-06-03T17:03:20+00:00

I am using Android 2.1 I need to know how to mash 4 items

  • 0

I am using Android 2.1

I need to know how to mash 4 items (String, String, String, String) into a single item
that i could enter into an array (to display on a listview).

  • 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-03T17:03:22+00:00Added an answer on June 3, 2026 at 5:03 pm

    You can create a custom class with a method that has four parameters. Now you can use this class anywhere you want. Please study following example.

    public class myObjectClass
    {
          String str1,str2,str3,str4;
    
          // Setting the values 
          public void setString1 ( String str1 )
          {
                this.str1 = str1;
          }
          public void setString2 ( String str2 )
          {
                this.str2 = str2;
          }
          public void setString3 ( String str3 )
          {
                this.str3 = str3;
          }
          public void setString4 ( String str4 )
          {
                this.str4 = str4;
          }
    
          // Gettng the values
          public String getString1 ()
          {
                return str1;
          }
          public String getString2 ()
          {
                return str2;
          }
          public String getString3 ()
          {
                return str3;
          }
          public String getString4 ()
          {
                return str4;
          }
    
          public void myObjects ( String str1, String str2, String str3,String str4 )
          {
                 // Your Operation Code
          }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an app using android OS for which I need to know
Possible Duplicate: Android - get path of resource I need to know the string
I know that we can get the current location of Android device using getLastKnownLocation
I Need to learn to ask .net webservices using android native objects you know
Using Android opengl I need to move an object from point A to point
Possible Duplicate: Best XML Parser for PHP Using JAXB with Google Android I need
I'm using Phonegap and Jquery Mobile on an Android app. I need to save
I am using android java to create an application that uses the accelerometer, i
I know there are various tools for creating android apps using python eg python-for-android,
I was just wondering if Android had built in code so that I could

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.