What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-17 05:30:16
when to use list
When to use List, Set and Map? If we need to access elements frequently by using index, then List is a way to go ArrayList provides faster access if we know index. If we want to store elements and want them to maintain an order, then go for List again. ... Add solution -
Other 2022-02-01 12:28:11
TestNG Data Provider using Excel
package testng; import java.util.Hashtable; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; public class testNGParameterizationExcel { public static ExcelReader excel = null; @Test(dataProvider = "getData"... Add solution -
-
Java 2021-11-14 07:17:24
when to use collections in java
LIST: Can store duplicate values, Keeps the insertion order. It allows multiple null values, Also we can read a certain value by index. - ArrayList not syncronized, array based class - LinkedList not synchronized, doubly linked - Vect... Add solution -
Shell/Bash 2021-11-10 17:58:18
how to create new repository in github via powershell
Function New-GitHubRepository { [cmdletbinding(SupportsShouldProcess)] Param( [Parameter(Position = 0, Mandatory, HelpMessage = "Enter the new repository name")] [ValidateNotNullorEmpty()] [string]$Name, [string]$Description, [switch]$Private... Add solution -
C# 2021-11-09 18:12:14
c# hashtable get value by key
There are few possibilities: you have already inserted null under the mykey before and now you are getting it back since if statement returns true myval is null and your code works flawlessly mykey is of type which has a very strange implementation of Ge... Add solution