OK, yes that works...but I just need to know whether there is such a thing as default arguments, or do I HAVE to do that. [This message has been edited by fred cook (edited June 15, 2001).]
In general, when you are trying to code always look for an algebraic way to make the code work faster. Brute force is a lowsy way to do stuff. Try to stay away from using it. The responses you've been getting could be very useful in the future. --Freddy ------------------ I have a cute bird
Does the '==' operator always test if two addresses are the same, or does it just test that when you are comparing pointers. Also, how could two addresses be the same anyway? Wouldn't you always have to use the 'new' operator?
Where I work there is a lot of Java programming that we put up on the web. You might want to look at the sites and see if you can program one of the applets yourself. Here are the two sites: http://www.shodor.org/cserd/misc_desk/index.html
You could also use a CGI script, but it is a definite pain in the ass. It can take over an hour to get the site up and running the way you want with a CGI script, and it's a lot of not neaded coding. XML, or SQL sounds like a good bet.
The main reason I ask this is because I know you can do it in C, but I don't want to overload my function (too much repeated code). If anyone else knows for sure whether or not Java has default arguments let me know.
First of all, is there such a thing in Java called default arguments or default parameters. If so, how do you do it? Tell me if this would be correct usage of a default argument (if there is one): public void myMethod (int myDefault = 0) { ... }