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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:02:31+00:00 2026-06-15T01:02:31+00:00

I have a C structure with 2 attributes, say the content and the val

  • 0

I have a C structure with 2 attributes, say the content and the val
How do I read this into an android file? Does android support any structure?

My structure is like

struct data[] = {
    {"aakash", 2260},
    {"anuj", 1}}

How to read such structures in android?

  • 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-15T01:02:32+00:00Added an answer on June 15, 2026 at 1:02 am

    For Android supports Java Platform. Structure is not belong to Java. You Can Achieve the Same with Pojo Classes.

    Public Class MyData {
    
        private String username;
        private double points;
    
        public String getUsername() {
            return username;
        }
        public void setUsername(String username) {
            this.username = username;
        }
        public double getPoints() {
                return points;
        }
        public void setPoints(double points) {
            this.points = points;
        }
        public MyData(String username,double points)
        {
            this.username = username;
            this.points = points; 
        }
    }
    
    
    MyData[] data = new MyData[2];
    
    data[0]= new MyData("aakash", 2260);
    data[1]= new MyData("anuj", 1);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say i have this XML file: <attributes> <units> <civilians> <unit> <name>Settler</name> <stats> <attack>26</attack>
I have structure like this. <ul class=gallerylist> <li> <image ...> <input ...> </li> <li>
I have a structure like this struct structure { BaseObject &A; //BaseObject has a
I have a structure like this: var var1 = { array1 : ['value1','value2', ...],
Lets say that I have a database structure with three tables that look like
Say you have this structure: class House < ActiveRecord::Base has_many :rooms accepts_nested_attributes_for :rooms attr_accessible
Lets say I have this XML file: <weather> <temp>24.0</temp> <current-condition iconUrl=http://....>Sunny</current-condition> </weather> I'm trying
So let's say my structure looks like this at some point: .......... <td> [...]
I have this structure: Activity A has a ViewPager. The pages of a ViewPager
I have folder structure and I would like to create JSON objects based on

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.