class cast exception

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

  1. matrixman333

    matrixman333

    Joined:
    May 14, 2006
    Messages:
    2
    Likes Received:
    0
    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. Advertisements

  2. matrixman333

    matrixman333

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

    Class cast exception

    Will, Oct 18, 2004, in forum: Java
    Replies:
    2
    Views:
    4,861
    slrncalmac.2.chess@spamgourmet.com
    Oct 18, 2004
  4. E11
    Replies:
    1
    Views:
    5,755
    Thomas Weidenfeller
    Oct 12, 2005
  5. da_rod_father
    Replies:
    3
    Views:
    700
    da_rod_father
    Feb 12, 2006
  6. MSG

    to cast or not to cast malloc ?

    MSG, Feb 6, 2004, in forum: C Programming
    Replies:
    38
    Views:
    1,421
    Dan Pop
    Feb 10, 2004
  7. EvilRix
    Replies:
    8
    Views:
    900
    Martin Dickopp
    Feb 14, 2004
  8. Pavel
    Replies:
    7
    Views:
    785
    Pavel
    Sep 19, 2010
Loading...