class cast exception

Discussion in 'Java' started by matrixman333, May 14, 2006.

  1. matrixman333

    matrixman333

    Joined:
    May 14, 2006
    Messages:
    2
    i have this line of code
    tempinteger=Integer.parseInt(new String((String)recieved.get(temp)));
    and when i run the program it says class cast exception
    anyone know how i can make this work
    oh and recieved is a HashMap
    matrixman333, May 14, 2006
    #1
    1. Advertising

  2. matrixman333

    matrixman333

    Joined:
    May 14, 2006
    Messages:
    2
    oh and i tried it without the new String part first
    matrixman333, May 14, 2006
    #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. Nick Flandry
    Replies:
    5
    Views:
    445
    Michael Graham[MSFT]
    Feb 12, 2004
  2. david
    Replies:
    1
    Views:
    3,712
    Dave Glasser
    Aug 23, 2003
  3. MSG

    to cast or not to cast malloc ?

    MSG, Feb 6, 2004, in forum: C Programming
    Replies:
    38
    Views:
    1,072
    Dan Pop
    Feb 10, 2004
  4. EvilRix
    Replies:
    8
    Views:
    635
    Martin Dickopp
    Feb 14, 2004
  5. Pavel
    Replies:
    7
    Views:
    524
    Pavel
    Sep 19, 2010
Loading...

Share This Page