What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

My question

What is the most efficent way to detect even numbers in java?

has been marked as a duplicate. It isn't - at least, it isn't a duplicate of the suggested question here:

How do I check if an integer is even or odd?

Which is actually C question, and not Java. Nor is it about optimisation, although optimisation (qua C) is mentioned a few times.

share|improve this question
1  
I agree. Reopened! –  Doorknob 冰 Jun 7 '13 at 10:50

1 Answer 1

The other question may be about C rather than Java, but its accepted answer does seem to answer your question. It also mentions Java (though lacks the tag for it), which may explain why it was considered a potential duplicate in the first place. It should probably be reopened.

share|improve this answer
    
How does it seem to answer my question? Are the C and Java languages now simply interchangable? Furthermore, the answers i received differ largely from the given --c focussed-- answer given there. –  bharal Jun 7 '13 at 9:07
1  
@bharal Perhaps it's just a language thing. When I say it "seems" to answer your question I mean "I can see why somebody might think it answers your question". Anyway, somehow managed to post without actually saying I think your question should be reopened - added that in there. –  Anthony Grist Jun 7 '13 at 9:11
    
Sorry, the just moved desks in the office and the people here keep it hot. I'm sweating like a buffalo and not having a bit of a huff, the seems on my part was petty. –  bharal Jun 7 '13 at 9:14
    
@bharal for the question you asked, yes C and Java are interchangeable. Actually, the way you stated it I would say Java is interchangeable with Basic, Prolog, probably F# and especially MUMPS: "random question time - what would be the most performant manner to determine an even number using java, and why?..." –  gnat Jun 7 '13 at 10:44
    
? the given answers to the question directly compete with the given performant-based answers to the C question, which challenges your opening statement. –  bharal Jun 7 '13 at 10:46

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .