Skip to content

Instantly share code, notes, and snippets.

@ihommani
Last active February 4, 2022 10:23
Show Gist options
  • Save ihommani/73e2df373d6f694cab4f24173e94de30 to your computer and use it in GitHub Desktop.
Save ihommani/73e2df373d6f694cab4f24173e94de30 to your computer and use it in GitHub Desktop.
case study 1
public MappedField getMappedField(final String storedName) {
    for (final MappedField mf : persistenceFields) {
           for (final String n : mf.getLoadNames()) {
               if (storedName.equals(n)) {
                   return mf;
               }
           }
       }
       return null;
   }
function callToRecursivity(){
return recursivity(0);
}
function recursivity(depth){
if(depth > 3){
return "final value";
}
return recursivity(depth++);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment