Instead of using so long for loop, it can do the trick in less than 25% stroke. TIME is MONEY ;)
class Solution { public static void main (String args[]){ //iterating through testcases int T = 10;//storing testcase counter while(T-->0)//use T value to compare and then decrement it { //Perform bussiness logic here: System.out.println("T"); } } }
123456789
T
T
T
running T 10 times
Iterated for 10times
10