Skip to content

Instantly share code, notes, and snippets.

@aalonzolu
Created March 24, 2017 04:09
Show Gist options
  • Save aalonzolu/048574568ebb5e8fb321e6f8345c2b49 to your computer and use it in GitHub Desktop.
Save aalonzolu/048574568ebb5e8fb321e6f8345c2b49 to your computer and use it in GitHub Desktop.
Java recursive method example
public int restar(number){
if(number>0){
number = number-1;
restar(number);
}
else{
return number;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment