You are here:

Java/Problem making a java program that involves Monotone sequences


himanshu wrote at 2013-03-08 15:03:28
actually there is a fault in this code.

If you insert a sequence which keeps on increasing,then it does not go into the last else statement and your longend remains 0.

Thus you don't get the correct output.


All Answers

Answers by Expert:

Ask Experts


Neal Ziring


Almost anything about the core Java platform, with an emphasis on networking. Not familiar with JDBC or the new Java graphics APIs. [Sun Certified Java Programmer, JDK 1.1]


Certified Java Programmer for JDK 1.1 and 2.0.

©2017 All rights reserved.