I have array of Shape:
Shape[] myshape = new Shape[13];
How I can save it to file?
I have found some code:
String fileName = "file.test";
BufferedOutputStream bs = null;
try {
    FileOutputStream fs = new FileOutputStream(new File(fileName));
    bs = new BufferedOutputStream(fs);
    bs.write(byte_array);
    bs.close();
    bs = null;
} catch (Exception e) {
    e.printStackTrace()
}
if (bs != null) try { bs.close(); } catch (Exception e) {}
But code work only for byte array, can anyone help me?
 
     
     
     
     
     
    