All pastes #763874 Raw Edit

Untitled

public java v1 · immutable
·published 2007-11-06 20:29 UTC
rendered paste body
private int maxR2(int[] v, int y, int z){       int x = v[z];       if(y == v.length-1){          return v[y];       }       else{          if( x < v[y]){             x = v[y];          }          System.out.println("Test");          maxR2(v, y+1, x);       }       return x;    }      int[] tt = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10};      Uppgift6 t = new Uppgift6();      System.out.println(t.maxR(tt));