It's actually never needed for things like that, unless you're in a local scope that has variables hiding global variables with the same name. Try it out!
punkz_N0t_Dead- Be nice, there's nothing...
Type: Posts; User: KevinWorkman
It's actually never needed for things like that, unless you're in a local scope that has variables hiding global variables with the same name. Try it out!
punkz_N0t_Dead- Be nice, there's nothing...
Recommended reading: JavaRanch Campfire - Cup Size: a Story About Variables
And its follow-up: JavaRanch Campfire - Pass By Value, Please
Yep, and that never changes. I've been programming for almost 10 years now, and I'll still look at something I wrote a couple months ago and start shaking my head.
Ohh okay, that's fair. We...
What happened when you tried that? I wouldn't worry too much about doing things the best way. If it works, it works. You'll come back in a couple months and kick yourself for half the things you're...
That really depends on what you're going for. I will point out that it doesn't make a ton of sense to initialize pencere to a new JFrame if you're just going to replace it by the instance passed into...
This is misleading. Everything in Java is passed by value. I repeat: everything in Java is passed by value.
I'm just going to add that, IMHO, if you're looking at something like "do I have to learn this?" then you're doing it wrong. Learn about things you think are interesting. If you think Swing is...