Create kadaneAlgo.java

java version of the solution