Collections
Chapter2:Recursion -- Printing odd or even number with recursion: public static void odd ( int a , int b ) { if ( a == b ) return ; if ( a % 2 == 1 ) System . out . println ( a ); odd (++ a , b ); } 15.How to write recursion in 3 steps? package org.example.recursion ; public class Main { public static void main ( String [] args ) { System . out .println( factorial1 ( 5 )) ; System . out .println( factorial2 ( 5 )) ; System . out .println( factorial3 ( 5 )) ; } public static Integer factorial1 ( Integer n ) { return n == 0 ? 1 : n * factorial1 ( n - 1 ) ; } public static Integer factorial2 ( I...