Print 1 to 10 without using loop in java
“Print 1 to 10 with out using loop” in java is quite a frequently asked interview question for automation testing. simple answer is to use recursive method, where we can call method to increment the number till a particular number is achieved. let’s see the implementation – OutPut: 12345678910