Код: Выделить всё
public boolean smallestDifference(Node node, int subSum1, int subSum2) {//
//int difference;
//int test;
node = headNode;
boolean addSub1 = false;
boolean addSub2 = false;
if(node == null) {
System.out.println("Smallest difference:");
System.out.println(subSum1 - subSum2);
}
if(subSum1
Подробнее здесь: [url]https://stackoverflow.com/questions/79171724/error-with-recursion-i-cannot-figure-out-java[/url]
Мобильная версия