Results 1 to 2 of 2

Thread: type casting

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

    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
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

    Default Re: type casting

    What did your compiler say when you tried it?

    kind regards,

    The only person who got everything done by Friday was Robinson Crusoe.

Similar Threads

  1. Type casting
    By kiros88 in forum New To Java
    Replies: 17
    Last Post: 09-02-2010, 01:58 PM
  2. Type Casting
    By Shaheen Mohamed in forum New To Java
    Replies: 6
    Last Post: 08-17-2010, 07: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, 07: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