Code:
var list = new List<int>(Enumerable.Range(1, 10)); for (int i = list.Count - 1; i >= 0; i--) { if (list[i] > 5) list.RemoveAt(i); } list.ForEach(i => Console.WriteLine(i));
var list = new List<int>(Enumerable.Range(1, 10)); for (int i = list.Count - 1; i >= 0; i--) { if (list[i] > 5) list.RemoveAt(i); } list.ForEach(i => Console.WriteLine(i));
DELETE table1 FROM table1 INNER JOIN table2 ON table1.name = table2.name WHERE table1.id = table2.id
<select id="ddlFruits" onchange="GetSelectedTextValue(this)"> <option value=""></option> <option value="1">Apple</option> <option value="2">Mango</option> <option value="3">Orange</option> </select> <script
<html> <body> <h2>HTML Iframes</h2> <iframe src="https://www.foo.com" height="200" width="500"></iframe> </body> </html>
WebDriver driver; static ExtentTest test; static ExtentReports report; @BeforeClass public static void startTest() { report = new ExtentReports(System.getProperty("user.dir")+"\\ExtentReportResults.html"); test = report.startTest("OrangeHRM"); System.out.println("befor class");
WebElement mytable = driver.findElement(By.id("resultTable")); //To locate rows of table. List < WebElement > rows_table = mytable.findElements(By.tagName("td")); //To calculate no of rows In table. int rows_count = rows_table.size(); String rows_count1 = rows_table.get(3).getText(); System.out.println(rows_count1); System.out.println(rows_count);
int n = 24; object ob = n;//boxing int m = (int) ob;//unboxing
!DOCTYPE html> <html> <body> <ul> <li>First Name</li> <li>Last Name</li> <li>Address</li> <li>phone number</li> </ul> </body> </html>
<div> <input list="category_id" name="category"> <datalist id="category_id"> <option value="0" id="OPTION_1"> All Categories </option> <option value="18" id="OPTION_2"> Fruits </option> <option value="20" id="OPTION_3"> Citrus
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <input type="button" id="" value="reset" onclick="" style="margin-right: 30px"> <input type="button" id="" value=" submit" onclick=""
Leave a comment: