What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-25 07:26:04
ArrayList add(int index, E element) method in java
import java.util.ArrayList; public class ArrayListAddAllMethod { public static void main(String[] args) { // creating an empty ArrayList with initial capacity ArrayList<Integer> al1 = new ArrayList<Integer>(5); al1.add(... Add solution -
C++ 2021-09-25 02:59:06
interfaces in c++
#include <iostream> #include <string> //Pure virtual function or inteface allows us to define a function in a base class that doesn't have an implementation or definition in the base class and force sub classes to implement that function //Pu... Add solution -
Java 2021-09-25 00:46:02
ArrayList isEmpty() method in java
import java.util.ArrayList; public class ArrayListIsEmptyMethodExample { public static void main(String[] args) { ArrayList<Integer> al = new ArrayList<Integer>(); // before checking ArrayList using isEmpty() method Sys... Add solution -
Java 2021-09-24 18:22:03
strictfp java
strictfp is a modifier in the Java programming language that restricts floating-point calculations to ensure portability. The strictfp command was introduced into Java with the Java virtual machine version 1.2 and is available for use on all currently upd... Add solution -
Other 2021-09-24 10:44:05
how to pass values from vf page to controller
public class aaPage52 { public Integer X { get; set; } public Integer X2 { get; set; } public aaPage52() { X = 0; X2 = 0; } public PageReference TestX() { String strX = ApexPages.currentPage().getParameters().get('X... Add solution -
Java 2021-09-23 23:25:03
Polymorphisim
Polymorphism means objects behave in different forms. ■ It occurs when parent class/interface calls to child class' objects Sub class can never be the reference type of Super Class Object ■ The reference of an object decides what is accessible. ■ Abstr... Add solution -
Html 2021-09-23 17:11:02
react select, option
import React from 'react'; import Select from 'react-select'; const options = [ { value: 'chocolate', label: 'Chocolate' }, { value: 'strawberry', label: 'Strawberry' }, { value: 'vanilla', label: 'Vanilla' }, ]; class App extends React.Component ... Add solution -
PHP 2021-09-23 12:45:04
interview php questions
# 27 basics questions for php Interview 1) What is PHP? PHP is a web language based on scripts that allow developers to dynamically create generated web pages. 2) What do the initials of PHP stand for? PHP means PHP: Hypertext Preprocessor. 3) Which pr... Add solution -
C# 2021-09-23 02:45:02
unity variable from another script
//Make Health public public class PlayerScript: MonoBehaviour { public float Health = 100.0f; } //Access it. public class Accessor : MonoBehaviour { void Start() { GameObject thePlayer = GameObject.Find("ThePlayer"); ... Add solution