Results 1 to 2 of 2

Thread: type casting

  1. #1
    saidinu is offline Member
    Join Date
    Aug 2011
    Posts
    6
    Rep Power
    0

    Default type casting

    Dear frnds

    the following question may sound very stupid or silly but would like to know it..

    for example i have arraylist for the class A

    is it possible to type cast the list to class B

    Thank you in advance.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,776
    Blog Entries
    7
    Rep Power
    21

    Default Re: type casting

    What did your compiler say when you tried it?

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Type casting
    By kiros88 in forum New To Java
    Replies: 17
    Last Post: 09-02-2010, 02:58 PM
  2. Type Casting
    By Shaheen Mohamed in forum New To Java
    Replies: 6
    Last Post: 08-17-2010, 08:56 PM
  3. help with type casting.
    By ramsrocker in forum Java Applets
    Replies: 15
    Last Post: 02-27-2009, 12:28 AM
  4. type casting
    By alvations in forum New To Java
    Replies: 1
    Last Post: 10-13-2008, 08:07 PM
  5. Type Casting Help
    By rhm54 in forum New To Java
    Replies: 2
    Last Post: 02-07-2008, 01:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •