Appium for loop

Hi All,
Below are the 2 Test Scenerios which i have to repeat 100 time …one after the other…
So i tried using for loop …in that but its showing me error…
eg:-

for(int i=0;i<100;i++)
{
@Test(priority=1)
public void add()
{
}

 @Test(priority=2)
 public void sab()
 {
  }

}

Biut its showing me syntax error …so kindly suggest some alternamtive apporach

@Test(priority=1)
public void Sum1() throws InterruptedException
{
driver.findElement(By.xpath("//android.widget.TextView[@content-desc=‘Search everything…’]")).click();
Thread.sleep(2000);

	 driver.findElement(By.xpath("//android.widget.EditText[contains(@resource-id,'com.skype.raider:id/search_src_text')]")).sendKeys("Amit");
	 Thread.sleep(2000);
	 
	
 	 driver.findElement(By.xpath("//android.widget.RelativeLayout[contains(@resource-id,'com.skype.raider:id/background_wrapper')]")).click();
	 Thread.sleep(2000);
	 
	
	 driver.findElement(By.xpath("//android.widget.EditText[contains(@resource-id,'com.skype.raider:id/message_area_edit_text')]")).sendKeys("HIIII");
	 Thread.sleep(2000);
	 
	 

	driver.findElement(By.xpath("//android.widget.TextView[contains(@resource-id,'com.skype.raider:id/message_area_send_button')]")).click();
    Thread.sleep(2000);
      
      driver.navigate().back();
      Thread.sleep(2000);
	  
 }
 
 
 @Test(priority=2)
 public void Sum2() throws InterruptedException
 {
 driver.findElement(By.xpath("//android.widget.TextView[@content-desc='Recent calls, tab not selected' and @index='0']")).click();
 Thread.sleep(2000);
 

 driver.findElement(By.xpath("//android.widget.TextView[@content-desc='People, tab not selected' and @index='0']")).click();
 Thread.sleep(2000);

 }

look for @Test(invocationCount = 100)

Hi Aleksei,
Its OK but i have to run the two tests one after the other…upto 100 times.
eg:-
U Have 10 test’s and you want to repeat the 5th and 6th test one after the other 100 times.

then add to 6th test: @Test(invocationCount = 100, dependsOnMethods = “testNr5”)