Could you clarify what you want it to do, im not clear on what you want to know?
if you want :
From A1
From A2
From A3
From A4
From A5
ect....
to be printed out then change this line of code:
System.out.println("From " + Thread.currentThread().getName());
to :
System.out.print("From " + Thread.currentThread().getName());
remember you first have to print the from then the
thread name so dont use the println rather use the print if u want to get the number to be next to the thread name or even do this :
System.out.println("From " + Thread.currentThread().getName() + i);