hi,
any one of the group ,please solve my problem
"is there is any method to find given number is even
or odd without using if ,else ,for,while,switch,conditional
operators,if else ladders...."
As you can probably tell, there are a multitude of ways to address your
problem. If you walk slowly through the various responses to your
initial posting, I am sure you will find something that will help you.
However, I think that most people will be willing to help if you can
show that you have done some initial research on your own. Tell us what
you have tried, show us code and output. I'm not exactly experience in
Java, so when you asked your question, I simply did a google searh on
"java method even odd" and looked at what google told me.
Personally, I don't see why your professor would restrict you in how you
can do your code, unless he/she was trying to get you to "think outside
the box". Unfortunantly, we don't know what your level of knowledge is,
so if we were to prescribe a solution that makes use of bitwise
operators (beyond me right now) and you present it as your solution,
your professor might penalize you thinking that you have cheated in some
way. So perhaps you can tell us briefly what you know about in Java so
that if we can help you, we won't get you in trouble
However, if you are so lazy that you want someone else to do your
homework for you, then you are asking in the wrong forum. People here
do not take kindly to posters who ask for them to do their homework
assignments, it kind of defeats the purpose of learning on your own.
Finally, there is a wonderful web page/usenet posting
http://groups.google.ca/group/comp....154f9/f3a348bfaba195c6?hl=en#f3a348bfaba195c6
I would suggest that you read this, adopt it at your creedo, memorize
it, sleep with it under your pillow, what ever it takes to make it your
modus operendi when posting. It will make your experience here much
more enjoyable.