I have run into some piece of code and I cannot find the meaning of this particular part:
Object[] arrayOfObject = (Object[])(Object[])localObjectInputStream.readObject();
Help[] arrayOfHelp = (Help[])(Help[])arrayOfObject[0];
The question concernes (Object[])
on the first line and (Help[])
repeated twice. It looks very much like casting but then why double casting into the same type?
Your help is very much appreciated!