Java problem (input and output stream)!! Could someone have alook at my codes? I’m able to save my game of life into a txt filebut I’m not able to restore/load it from the txt. Am I missingsomething?
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import java.util.*;
import java.io.*;
//import java.io.Serializable;
public class runMain extends JFrame implements ActionListener,Runnable {
// Label the number of generation
private JLabel generationLabel;
// Label the start/stop/reset buttons
private JButton start;
private JButton stop;
private JButton restart;
private JButton save;
private JButton restore;
private JFileChooser fileChooser;
// The inital number of generation
private int generation = 0;
// Thread clas object
private Thread t;
private boolean flag = true;
// Label the cells
private MarkLabel[][] mark;
// Declare state of
PayPal Gateway not configured
PayPal Gateway not configured