I'm calling two different main class which are within a for in my code, However I would like to run both of them at the same time.
for (int m=0; m<ListUser.size();m++){
System.out.println(ListUser.get(m));
File user = new File(ManagedPlatformPath.properties()+"/"+ListPlatform.get(n)+" /"+ListUser.get(m)+".adf");
if(user.exists()){
System.out.println("Reading Information "+ListUser.get(m)+"");
BACControlS.main(args);
BACControlT.main(args);
}
else{
System.out.println("Not Information "+ListUser.get(m)+"");
}
How would be possible to run both BACControlS.main(args) and BACControlT.main(args) at the same time, instead to wait until one is finish.