RE: [Share] Graph PP 10-25-2013, 05:49 PM
#11
Quote:I thought they meant the same thing. When are we suppose to use empty string assignments and when are we suppose to use null assignments? Could you explain that to me?
String name = null means that you don't initialize anything at all, where as using "" would mean that it would mean that it would check for some string data within the quotes and that general gives you a warning "String cannot be left empty" or something equivalent.
Using "" means that you are creating a reference object of size 0.
using null means that you create no object.
So, did you get it ?
Why create even a single useless object.
Quote:I think if I dispose instead of exiting when I hit the close button, the jvm process would not stop after i expect it to, right?
Read this : http://www.hackcommunity.com/Thread-Java...#pid162671
Quote:I have been suggested that in past too. I guess I'll have to make a habit of it. I don't know why, I find Listeners more neater that Adapters.. :Laughing:
You see I have been taught that programming is an art and the your pc or laptop is your canvas. If you use extra colors and try to make it more brighter then it might have some negetive effects such as the color might went off the line which would make it look less beautiful. Your PC is like your girl why do you intend to put more more burden on it by letting it execute more lines of codes, just let her enjoy. So, I hope you understood. Also it is a good programming practice to avoid writing unnecessary methods.
I liked the way you have used the math to get your things done. I can evaluate very well what you have hiding inside you.
Quote:Strangely I never experienced that before. I updated a line in the code and now it should work fine in that department.
Thank you very much for taking time to go through my code. I'll keep your suggestions in mind while coding. :Smile:
No Need to thank me, it was my pleasure help you if I can in any manner. I was taught by someone and know I can pass that onto others. Even its a part of my learning too.
![[Image: OilyCostlyEwe.gif]](http://fat.gfycat.com/OilyCostlyEwe.gif)