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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:33:22+00:00 2026-06-07T19:33:22+00:00

Here is my code! I want to multiply user cost with 12. and I

  • 0

Here is my code! I want to multiply user cost with 12. and I want to add this count(cost*12) to list view.But I add only String columns to list view because of list adapter.How can also add integer value by multplying ?

static final String KEY_ITEM= "USER_ID";   
static final String KEY_NAME = "USER_NAME";
static final String KEY_SURNAME = "USER_SURNAME";
static final String KEY_DATE = "USER_DATE";
static final String KEY_COST="USER_COST";


HashMap<String, String> map = new HashMap<String, String>();
Element e = (Element) nl.item(i);
map.put(KEY_ITEM, conParser.getValue(e, KEY_ITEM));
map.put(KEY_NAME, conParser.getValue(e, KEY_NAME));
map.put(KEY_SURNAME, conParser.getValue(e, KEY_SURNAME));
map.put(KEY_DATE, conParser.getValue(e, KEY_DATE));
map.put(KEY_COST, conParser.getValue(e, KEY_COST));

items.add(map); 

final ListAdapter adapter = new SimpleAdapter(this, items,
            R.layout.list_item,
            new String[] {KEY_ITEM,KEY_NAME,KEY_SURNAME,temp,KEY_DATE,KEY_COST}, new int[] {
                    R.id.kod, R.id.isim,R.id.kisi_sayisi,R.id.adisyon_sayisi,R.id.toplam_satis});

    setListAdapter(adapter);
  • 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-07T19:33:23+00:00Added an answer on June 7, 2026 at 7:33 pm

    Before add it to the map get the String and manipulate the data.

    Integer cost=Ingeter.valueOf(String)*12;
    cost.toString();

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to do like this : http://ajaxload.info/ here is my code: <!DOCTYPE html>
I have this html code that i want to edit with jQuery. Here is
I'm programming Java in Eclipse IDE. Here is code I want to read file:
Here is my code : What i want is just to make scrollbar available
I want to download and save pdf file to internal storage. Here is code
Here's my code, what I want to do is to be able to have
Here's my code: sentenceToTranslate = raw_input(Please write in the sentence you want to translate:
I want display data from database in Listbox...Here is my code, It is not
I want to load the image URL from my NSMutableArray. Here is my Code:
I want a php page to 'display' a pdf. Here is the code: <?php

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.