JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Check out my kickstarter CLICK HERE
My book, my movies, my videos, my podcasts, my events ... the big collection of paul wheaton stuff!
Originally posted by Don Smathers:
This is my first use of the 'college' so please overlook any inappropriateness --- guess I expanded on the assignment a bit, but the following is how I thought such a task should be handled. Would appreciate any feedback re : is this note appropriate to the forum? also, can following code be further optimized? It works just fine.
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Check out my kickstarter CLICK HERE
My book, my movies, my videos, my podcasts, my events ... the big collection of paul wheaton stuff!
Originally posted by Paul Wheaton:
I don't understand how you would use a for loop in this assignment. ANS: generalize the prgm to handle a longer command line input, such as C:\java Even_Odd 234 11 4 5 789, etc.,
processing each member in turn.
Re: the 'jd stuff' - an invention of my own -- when I first started to study Java, I found the mix of upper/lower case and the use of class, variable, and method names VERY CONFUSING !! So, after consulting my dictionary, I discovered no English words beginning with 'jd' -- many other combos will also work, but I like this one -- sounds Arabic -- anyway, when I review my code six months later, I am NEVER confused that 'jd' words are anything but something I threw in --- never someone elses name for whatever --- maybe hokey, but it works for me.
I don't see why you would want to use all the jd stuff. Not only does no one do anything like that, you aren't buying uniqueness because you already have uniqueness in Java. Unlike other languages, variables used inside your method are not global.
re "style or reason": Not sure what you are asking for here, but if you want to pass the code review, you need to follow the style guide. If you want to understand the "why" of the style guide, by all means ask here. ANS: since posting this, I've learned a lot --- thanks.
Consider Paul's rocket mass heater. |