Hi

I have a problem with some coding and i an having trouble understanding where i am going wrong

Here the coding

Code:
	import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
 
public class Hire extends JDialog implements ActionListener
{
	private JButton ok;
	private JButton cancel;
	private JTextField bid;
	private JTextField name;
	private JTextField time;
	private BoatHireCompany theBoat;
	
	public Hire(String sTitle, JFrame owner) {
		super (owner, sTitle, true);
		setLayout(new FlowLayout());
		setSize(350,200);
		add (new JLabel("Enter Boat ID:"));
		bid = new JTextField(20);
		add (bid);
		add (new JLabel("Enter Customer Name:"));
		name = new JTextField(20);
		add (name);
		add (new JLabel("Enter Current Time:"));
		time = new JTextField(20);
		add (time);
		ok = new JButton("Hire Boat!");
		ok.addActionListener(this);
		add(ok);
		cancel = new JButton("Cancel");
		cancel.addActionListener(this);	
		add(cancel);
	}
	public BoatHireCompany getBoat()
	{
		return theBoat;
	}
	public void actionPerformed(ActionEvent e) {
		if (e.getSource() == ok) {
		    theBoat =  new BoatHireCompany(bid.getText(), name.getText(), time.getText());
		}
		else if (e.getSource() == cancel) {
		    // data entry cancelled
		    theBoat = null;
		} 
		dispose();
	}
}
line 40
Error cannot find symbol
constuctor BoatHireCompany (java.lang.String,java.lang.String,java.lang.Strin g)
Class BoatHireCompany

The thing is i have the BoatHirecompany class

Code:
import java.util.*;
import javax.swing.*;
 
public class BoatHireCompany {
	
	private ArrayList <Boat> theBoats;
	private int numBoats;
	private int maxBoats;
	private String companyName;
	
	// create a boat hire company
	public BoatHireCompany (String name, int num) {
		companyName = name;
		numBoats = 0;
		maxBoats = num;
		theBoats = new ArrayList <Boat> (maxBoats);
	}
	
	public boolean addBoat( Boat newBoat )
    {   // add another Boat to the BoatHireCompany
        if ( numBoats == maxBoats ) {
			return false;
        }
        else {   // add Boat to the BoatHireCompany
            theBoats.add(newBoat);
            numBoats++;
            return true;
        }
    }
	
	public void displayAll() {
		for (int i = 0; i < numBoats; i++) {
            System.out.println(theBoats.get(i).toString());
        }
	}
	
	public void displayPedalBoats() {
	}
	
	public void displayRowingBoats() {
	}
	
	public void displayHiredBoats() {
	}
	
	public void findPedalBoats() {
	}
	
	public void findRowingBoats() {
	}
	
	public void findBoat() {
	}
	
}
my Main where the data is the big headache

Code:
public class Main
{
   public static void main( String[] args)
    {
// create company
	BoatHireCompany octagon = new BoatHireCompany("octagon", 10);
	
 
	public Main() 
	{
		
		// add default boats to octagon company
		octagon.addBoat(new RowingBoat("Titanic", 11));
		octagon.addBoat(new PedalBoat("Red", 12));
		octagon.addBoat(new PedalBoat("Green", 13));
		octagon.addBoat(new RowingBoat("London", 14));
		octagon.addBoat(new PedalBoat("White", 15));
		octagon.addBoat(new PedalBoat("White", 16));




// Add code to handle the menu events
	public void actionPerformed(ActionEvent e) 
	{
	 if (e.getSource() == mfOne) 
	 { // hire a boat
     Hire hire = new Hire("Hire a boat", this);
     hire.setVisible(true);
     Boat boat = hire.getBoat(); 
	        if( p != null) 
	        {
		    	textarea.setText( p.toString() );
	 	      	octagon.addBoat(new PedalBoat(p));
	        }
	        else 
	       {
		    	textarea.setText( "Boat not added" );
			   }
		}
		
		else if (e.getSource() == mtOne) 
		{ // add new boat
			GUINew newb = new GUINew("Add a new boat", this);
			newb.setVisible(true);
			if(newb.getType().equals "Rowing Boat") 
			{
				octagon.addBoat(new RowingBoat(newb.getName(), newb.getBid()), newb.getBid(), textarea, title);
			}
			else {
				octagon.addBoat(new PedalBoat(newb.getName(), newb.getBid()), newb.getBid(), textarea, title);
			}
		}

  }
}
}
}
P:\BPRC\src\Main.java:9: illegal start of expression
public Main()
^
P:\BPRC\src\Main.java:9: ';' expected
public Main()
^
P:\BPRC\src\Main.java:24: illegal start of expression
public void actionPerformed(ActionEvent e)
^
P:\BPRC\src\Main.java:24: illegal start of expression
public void actionPerformed(ActionEvent e)
^
P:\BPRC\src\Main.java:24: ';' expected
public void actionPerformed(ActionEvent e)
^
P:\BPRC\src\Main.java:24: ';' expected
public void actionPerformed(ActionEvent e)
^
P:\BPRC\src\Main.java:46: ')' expected
if(newb.getType().equals "Rowing Boat")
^
P:\BPRC\src\Main.java:46: not a statement
if(newb.getType().equals "Rowing Boat")
^
P:\BPRC\src\Main.java:46: ';' expected
if(newb.getType().equals "Rowing Boat")
^
P:\BPRC\src\Main.java:50: 'else' without 'if'
else {

Any Help would be welcome thank you for you time