Hey newb problem here need help

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

  1. samyouel

    samyouel

    Joined:
    Feb 16, 2009
    Messages:
    1
    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. Advertising

  2. samyouel

    code learner

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

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. icurfmn8

    Database/profile Hey here's a puzzle

    icurfmn8, Feb 7, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    338
  2. Evan

    Re: Complete Newb Here

    Evan, Jun 27, 2003, in forum: C++
    Replies:
    0
    Views:
    757
  3. gerg

    total newb here

    gerg, Jan 8, 2006, in forum: Python
    Replies:
    1
    Views:
    297
    UrsusMaximus@gmail.com
    Jan 9, 2006
  4. Jose M Hernandez

    Graphs in ASP? ASP newb here

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

    Hey I need help with my code.

    Brian Geds, Oct 28, 2009, in forum: Ruby
    Replies:
    4
    Views:
    84
    Bertram Scharpf
    Oct 28, 2009
Loading...

Share This Page