fred cook

Greenhorn
+ Follow
since Jun 13, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by fred cook

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).]
22 years ago
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
22 years ago
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?
22 years ago
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

http://www.shodor.org/interactivate

These two sites you ought to look at anyway because the applets are really cool, and there is a lot of stuff to learn.
22 years ago
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.
22 years ago
make sure your running it as a program not an applet.
22 years ago
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.
22 years ago
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)
{
...
}
22 years ago