LinuxAnswers DiscussionThis forum is to discuss articles posted to LinuxAnswers.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
are java commands in linux different from the java commands in windows?
99% of the time, no, however there may of course be certain situations where a program has been written for linux which will not compile/run on windows because some platform-specific code exists - it could be something as simple as a file location - a hard-coded /home/me/file.txt ain't going to get you far in windows.
When you test b == 0, you declare the b statement be b = a - c instead of b = c - a
Considering a squared plus b squared equal c squared, C is always larger than A or B,
wouldn't this fact mitigate the need to test either A or B for a negative value? The
text book example of a right triangle is a=3, b=4, c=5; squared, 9=25-16 and 16=25-9
Any number squared becomes a positive. You only subtract a smaller square from a
larger square. It should be impossible for the difference to ever be a negative