Testng include exclude methods

package testNG;
 
import org.testng.annotations.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.BeforeTest;
 
public class TestNG_Include_Exclude_Feature {
WebDriver driver;
 
@Test
public void bharathnewsapp() {
}
 
@Test
public void google() {
driver.get("https://www.google.com");
driver.findElement(By.name("q")).sendKeys("techlearn.in");
driver.findElement(By.name("q")).sendKeys(Keys.ENTER);
}
 
@Test
public void techlearn() {
 
}
 
@Test
public void gmail() {
driver.get("https://www.gmail.com");
}
 
@Test
public void facebook() {
}
 
@BeforeTest
public void beforeTest() {
System.setProperty("webdriver.chrome.driver", "G:\\Lib\\chromedriver.exe");
driver = new ChromeDriver();
driver.manage().window().maximize();
}
 
}

testng.xml file

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">
<suite name="Suite">
<test thread-count="5" name="Test">
<classes>
<class name="testNG.TestNG_Include_Exclude_Feature" />
 
<methods>
<include name="google" />
<exclude name="facebook" />
<exclude name="bharathnewsapp" />
<exclude name="gmail" />
<include name="techlearn" />
</methods>
 
</classes>
</test> <!-- Test -->
</suite> <!-- Suite -->