| Author |
Object to int array conversion
|
Meet Gaurav
Ranch Hand
Joined: Oct 08, 2008
Posts: 492
|
|
HI,
I just write a int[] in the ObjectOutputStream (In Applet) and I have to receive the same in other end(Servlet) using below code
I tried something but this is wrong. Please advive how to recive the same int [] here
Since this is a General Java query am posting this here
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16681
|
|
Did you try casting it?
Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
Meet Gaurav
Ranch Hand
Joined: Oct 08, 2008
Posts: 492
|
|
|
How ? From Object to int []
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Any array is an object, so yes, casting to int[] is allowed using (int[]).
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: Object to int array conversion
|
|
|