Can someone help me please to understand why I get this Exception

Wehn I run my application I get the following exception:
Exception in thread "main" java.lang.ClassCastException: org.cadenhead.ecommerce.Item
     at java.util.Arrays.mergeSort(Arrays.java:1156)
     at java.util.Arrays.sort(Arrays.java:1080)
     at java.util.Collections.sort(Collections.java:117)
     at org.cadenhead.ecommerce.StoreFront.sort(StoreFront.java:36)
     at GiftShop.main(GiftShop.java:24)  What does it mean?
Thank you very much for your help

It means that the code has attempted to cast an object to a subclass of which it is not an instance.
***Annie***

Similar Messages

Maybe you are looking for

  • How to dynamically determine Receivers within BPM

    I’m trying to design a way to determine my receivers within my BPM process during runtime.   My Scenario is as follows: SAP IDOC     V   XI              XI uses JAVA Mapping MT1 to determine vendors and if customer receives PIDX                      

  • Windows Media Player does not recognize my device in bluetooth mode.

    Windows Media Player recognizes my device when connected with a USB cable but not when connected via bluetooth in Windows 7. The WMDC recognizes my device in bluetooth mode without any problem. I would like to synchronize my device with Windows Media

  • [Solved] xorg will not start after update

    Hi there, I updated Arch and when I restarted my computer lightdm did not start.  I ran systemctl disable lightdm.service and I was able to boot up to a command prompt and login.  I tried to start xorg-server by running startx  (my .xinitrc file has

  • Tv shows no longer working

    i have always used tv shows on apple tv and now it no longer appears i am in Canada we use it all the time!

  • Possible New Glitch After Updating to 1.1.4

    I'm not sure if this is a coincidence or a problem caused by my recent update to 1.1.4 but my iPhone now goes out of service indefinitely until I restart my phone. I don't remembering it doing this before I updated with 1.1.4 Coincidence (AT&T) or 1.