Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
/*
* Created on 16.02.2005@22:43:29
*
* TODO Licence info
*/
package de.tutorials;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
/**
* @author Administrator
*
* TODO Explain me
*/
public class ReadWriteExample {
public static void main(String[] args) {
String[] strA = { "A", "B", "C" };
Serializable[] serializables = strA;
String theFile = "c:/backup.dat";
try {
ObjectOutputStream oos = new ObjectOutputStream(
new FileOutputStream(theFile));
oos.writeObject(serializables);
oos.close();
ObjectInputStream ois = new ObjectInputStream(new FileInputStream(
theFile));
String[] strB = (String[]) ois.readObject();
ois.close();
for (int i = 0; i < strB.length; i++) {
System.out.println(strB[i]);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
try {
ObjectOutputStream oos = new ObjectOutputStream(
new FileOutputStream(datei));
for(int i=0;i<=1;i++)
{
for(int j=0;j<=10;j++)
{
String str = Float.toString(helligkeit[i][i]);
Serializable serializables = str;
System.out.println(str);
oos.writeObject(serializables);
}
}
oos.close();
}
catch (Exception e)
{
e.printStackTrace();
}
public class ArrayReader {
public static void main(String args[]) {
String datei = "3D_Box_001_112.dat";
try
{
ObjectInputStream ois = new ObjectInputStream(new FileInputStream(
datei));
String strB = (String) ois.readObject();
ois.close();
System.out.println(strB);
}
catch (Exception e)
{
e.printStackTrace();
}
}
}