Hey newb problem here need help

Discussion in 'Java' started by samyouel, Feb 16, 2009.

  1. samyouel

    samyouel

    Joined:
    Feb 16, 2009
    Messages:
    1
    Likes Received:
    0
    Hey alright heres what im trying to accomplish.

    I want to be able to add strings to an arraylist and then give them a numerical value.
    Like:

    int coolness;
    static ArrayList<String> people = new ArrayList<String>();
    people.add(sam);


    and then something like
    people.sam.coolness = 999999;


    How is this accomplished? thanks!
     
    samyouel, Feb 16, 2009
    #1
    1. Advertisements

  2. samyouel

    code learner

    Joined:
    Dec 24, 2010
    Messages:
    19
    Likes Received:
    0
    not sure about your question but would not it work
    people.sam.coolness = String.valueOf(999999);
     
    code learner, Jan 9, 2011
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. David K. Worman

    Perl newb in need of help with script.

    David K. Worman, Sep 18, 2003, in forum: Perl
    Replies:
    2
    Views:
    514
    David K. Worman
    Sep 18, 2003
  2. icurfmn8

    Database/profile Hey here's a puzzle

    icurfmn8, Feb 7, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    403
  3. gerg

    total newb here

    gerg, Jan 8, 2006, in forum: Python
    Replies:
    1
    Views:
    375
    UrsusMaximus@gmail.com
    Jan 9, 2006
  4. jflo
    Replies:
    0
    Views:
    345
  5. mittalkratika817@gmail.com

    hey need a project

    mittalkratika817@gmail.com, Nov 16, 2008, in forum: C Programming
    Replies:
    2
    Views:
    296
    Doug Miller
    Nov 16, 2008
  6. Jose M Hernandez

    Graphs in ASP? ASP newb here

    Jose M Hernandez, Jan 6, 2006, in forum: ASP General
    Replies:
    12
    Views:
    341
  7. Brian Geds

    Hey I need help with my code.

    Brian Geds, Oct 28, 2009, in forum: Ruby
    Replies:
    4
    Views:
    167
    Bertram Scharpf
    Oct 28, 2009
  8. nightsaber
    Replies:
    1
    Views:
    234
    Michael Stemper
    Jul 17, 2003
Loading...