import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Test  extends JFrame implements ActionListener
{
	JTextField t1=new JTextField(10);
	JTextField t2=new JTextField(10);
	JTextField t3=new JTextField(10);
	JTextField t4=new JTextField(10);
	JTextField t5=new JTextField(10);
	JTextField t6=new JTextField(10);
	JButton b1=new JButton("MakeReservation");
	JButton b2=new JButton("DeleteReservation");
	JButton b3=new JButton("searchReservation");
	JButton b4=new JButton("printResrevation");
	JButton b5=new JButton("clear");
	JButton b6=new JButton("Exit");
	JLabel l1=new JLabel("Reservation number                ");
	JLabel l2=new JLabel("Room Number              ");
    JLabel l3=new JLabel("OccupantsNumber                 ");
	JLabel l4=new JLabel("CstomerName                     ");
	JLabel l5=new JLabel("Duration                  ");
	JLabel l6=new JLabel("ArrivalsDay              ");
	JTextArea A=new JTextArea(10,70);
	list List1=new list();
	public static void main(String[] args)
	{
		Test  t=new Test();
	}
	public Test()
	{
		setVisible(true);
		setTitle("Grand Hotel Reservation System");
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setSize(700,600);
		setLayout(new FlowLayout());
		add(t1);add(t2);
		add(t3);add(t4);
		add(t5);add(t6);
		Font ab=new Font("Garamond",Font.BOLD,20);
		l1.setFont(ab);l2.setFont(ab);l3.setFont(ab);l4.setFont(ab);l5.setFont(ab);l6.setFont(ab);
		add(A);
		add(b1);add(b2);
		add(b3);add(b4);
		add(b5);add(b6);
		b1.addActionListener(this);
		b2.addActionListener(this);
		b3.addActionListener(this);
		b4.addActionListener(this);
		b5.addActionListener(this);
	    b6.addActionListener(this);
	}
	    public void actionPerformed(ActionEvent ae)
    	{
		String a=ae.getActionCommand();
		if(a.equals("MakeReservation"))
		{
            List1.AddandSort(Integer.parseInt(t1.getText()),Integer.parseInt(t2.getText()),t3.getText(),t4.getText(),t5.getText(),t6.getText());

			JOptionPane.showMessageDialog(null,"Reservation successfully registered");
		}
		else if(a.equals("searchReservation"))
		{
			String n=JOptionPane.showInputDialog("Enter the reservation number");
				int m=Integer.parseInt(n);
			IntSLLNode t;
			for(t=List1.head;t!=null&&m!=t.ReservationNo;t=t.next);
			if(t!=null)
			{
				A.setText("");
				A.append("The record is found\n");
				A.append("Reservation number."+"\t\t"+"Room number."+"\t"+"OccupantsNumber"+"\t"+"CstomerName"+"\t"+"Duration"+"\t"+"ArrivalsDay"+"\n");
				A.append(t.ReservationNo+"\t\t"+t.RoomNo+"\t"+t.OccupantsNo+"\t"+t.CstomerName+"\t"+t.duration+"\t"+t.ArrivalsDay+"\n");
			}
			else
				JOptionPane.showMessageDialog(null,"not found");
		}

		else if(a.equals("clear"))
		{
		t1.setText("");
		t2.setText("");
		t3.setText("");
		t4.setText("");
		t5.setText("");
		t6.setText("");
     	}
     	else if(a.equals("DeleteReservation"))
	    {
		String n=JOptionPane.showInputDialog("Enter the Reservation number to delete it");
			int m=Integer.parseInt(n);
			boolean b=List1.deleteReservation(m);
			if(b==true)

					JOptionPane.showMessageDialog(null,"Successfully Deleted");
				else
					JOptionPane.showMessageDialog(null,"not deleted");

     	}
     	else if(a.equals("Exit"))
     	{
	     System.exit(0);

	}
    }
 }

I have error: incompatible types in line 67
and
I have error : error: cannot find symbol in line 92

can you provide us with the full error messages? either you 've not given us all of your code, or you're also having trouble with the lines

list List1 = new list();
...
IntSLLNode t;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.