Can't find constructor

My code is very straightforward. I’m trying to build an airport booking system and there is a customer class with the following code and constructor:

import java.io.*;

class customer implements Serializable
{
public customer(String name, String address, String town, String county, String country, double cost, Boolean veg, Boolean dis)
{

}

When i try to make a pretend object for this class I get an error saying cannot resolve symbol. symbol : constructor customer (…type of variables…). location: class customer. It puts the arrow under the new, as in it can’t find this class. I don’t know why, I’ve made pretend flights and planes already with out errors but the customer gives the error for the code:

customer c2 = new customer(“name”, “address”, “town”, “county”, “country”, cost, b, b);

Can anyone see what I’ve done wrong? Any help much appreciated.

*edit
a new customer object can be created if the class is overloaded and customer c2 = new customer();, but why doesn’t the first one work?

Thanks
Mick

symbol : constructor customer (…type of variables…)

Well, exactly that would be the interesting part. Do these types match?

Try:

customer c2 = new customer(“name”, “address”, “town”, “county”, “country”, 1200.0,new Boolean(true),new Boolean(false));

(Btw classes should start with an uppercase letter)

Oh and are you sure that you want to use Boolean there and not boolean? :>

Oh and are you sure that you want to use Boolean there and not boolean?

This is the problem, thanks.

(Btw classes should start with an uppercase letter)

Is this for good readability yeah? It’s a team project, that class was programed by someone else, I promise ;D

[quote]>(Btw classes should start with an uppercase letter)

Is this for good readability yeah?
[/quote]
That, and to be conformant with every API your app. will ever interface with.

It realy is beyond me why alot of Java developers make up their own naming conventions.
The very nature of Java means you are always using atleast some of the base JDK classes, so to maintain a consistent naming convention you have to use the same standard as the base JDK API.

[quote]It’s a team project, that class was programed by someone else, I promise ;D
[/quote]
If you can’t make them code to the Sun standard naming convention, I suggest you get a new team - 'cos whatever project you are attempting is bound to fail =/

We have actually just finished the project off, and I’m wanting to apply the polish. I’ve searched for this on Google but can’t find anything, basically I want to maximise a screen to make it cover the desktop. I don’t mean a full screen application like a game, but more like a software package would be. Is there code for maximising in the same way as .setResizable and visible etc? If not should I use code I have developed in games to fill the screen with a setSize just less than the resolution so the window bar still shows up at the bottom.

Thanks for any help.
Mick

JFrame’s have a method that you pass JFrame.SOME_CONSTANT that I can’t remember :wink: Search the docs for it. It’s something like a setState(int state) method, which takes a state that looks kinda like JFrame.STATE_MAXIMIZED. You’ll recognize it if you see it. The idea is that you call that method, and the JFrame maximizes itself.

Brilliant found it ;D.
I was looking in the docs but wasn’t sure what exactly I was looking for as I wasn’t sure about the state. The code is actually
frame.setExtendedState( MAXIMIZED_BOTH );
Thanks for the help.

Mick