add notes of java recursive methods, + code examples