What do you want to save?
Add Code snippet
New code examples
-
C# 2021-09-17 23:51:02
import C++ into C#
//you will be using the using using System.Runtime.InteropServices; //Before we begin you must understand you cannot truely import CPP. //Only static functions and structs for data can be imported. This //may mean writeing a quick CCP class to static na... Add solution -
Java 2021-09-17 05:21:02
creating a animal class in java
package com.journaldev.inheritance; public class Animal { private boolean vegetarian; private String eats; private int noOfLegs; public Animal(){} public Animal(boolean veg, String food, int legs){ this.vegetarian = veg; this.eats = food; ... Add solution -
Other 2021-09-16 05:24:03
function to find multiple substring in given string
matches = ["more", "wholesome", "milk"] a_string = "A string is more than its parts! milk, wholesome" if any(x not in a_string for x in matches): print "missing" Add solution -
Java 2021-09-14 19:46:02
generic variable java
List<String> yourList=new ArrayList<>();//short form of Arraylist<String> as the compiler infers the <String> from the left side of the assignment yourList.add("Hello"); yourList.add(123);//compiler Error String firstElem... Add solution -
C# 2021-09-14 17:46:02
get time from datetime c#
//Return the time from DateTime object in string format var timeString = DateTime.Now.ToString("hh:mm:ss"); //Return time in 24h format var time24 = DateTime.Now.ToString("HH:mm:ss"); //Use short time format to return string value ... Add solution -
Other 2021-09-13 02:51:03
get family type revit api
public Result Execute( ExternalCommandData commandData, ref string message, ElementSet elements ) { UIApplication uiapp = commandData.Application; Document doc = uiapp.ActiveUIDocument.Document; Stopwatch ... Add solution