Question d’entretien chez Cognizant

How to take user input in java without scanner write an infinite for loop which asks to continue at 100 intervals basic SQL questions