What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-11-08 23:49:17
how to get all the elements in xpath java
XPathExpression expr = xpath.compile("//Yourpath"); NodeList list= (NodeList) expr.evaluate(doc, XPathConstants.NODESET); for (int i = 0; i < list.getLength(); i++) { Node node = list.item(i); System.out.println(node.getTextContent()); Add solution -
Java 2021-11-05 08:06:14
write a simple arraylist recursive code in java
MyMethod3 ArrayList<Integer> sum = new ArrayList<Integer>(); for (i = 0; i < MyArrayList.size(); i++){ for (j = i + 1; j < MyArrayList.size(); j++){ for (k = j + 1; k < MyArrayList.size(); k++){ int total = MyA... Add solution -
C# 2021-11-01 18:02:13
sharepoint c# get list item query by lookup
using System; using Microsoft.SharePoint.Client; using SP = Microsoft.SharePoint.Client; namespace Microsoft.SDK.SharePointServices.Samples { class RetrieveListItems { static void Main() { string siteUrl = "http:/... Add solution -
Java 2021-10-29 00:02:08
show confirmation dialog java android
public void onDeleteClick(View v) { int i = Integer.parseInt((String)v.getTag()); AlertDialog.Builder alert = new AlertDialog.Builder(AddressListActivity.this); alert.setTitle("Delete"); alert.setMessage("Are you sure you w... Add solution -
C# 2021-10-25 22:27:15
sharepoint c# csom get list item attachment
using Microsoft.SharePoint.Client; using System.Linq; using (ClientContext clientContext = new ClientContext("http://MyServer/sites/MySiteCollection")) { // clientcontext.Web.Lists.GetById - This option also can be used to get the list using L... Add solution -
Java 2021-10-25 07:38:19
java set value of arraylist
import java.util.ArrayList; public class SetExample { public static void main(String args[]) { ArrayList<Integer> arraylist = new ArrayList<Integer>(); arraylist.add(1); System.out.println(arrayList.get(0)); //1 arrayList.s... Add solution -
Java 2021-10-25 00:50:11
java code to get all leaf nodes of a xml
try { final Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse("input.xml"); final XPathExpression xpath = XPathFactory.newInstance().newXPath().compile("//*[count(./*) = 0]"); final NodeList nodeList ... Add solution