public class FileStructure {
public static void main(String[] args) throws Exception {
Object data[] = new Object[150];
for(int i = 0 ; i < 150 ; i ++){
data[i] = (short)43 ; // It is just an example
/*
* Autoboxing allows you to add any primitive char and bytes ...
*/
}
for(int i = 0 ; i < 150 ; i ++){
if(data[i] instanceof Short ){
System.out.println("Short Data :" + data[i]);
}
// Similarly you can check with other primitive Wrappers ..
}
}
}