What do you want to save?
Add Code snippet
New code examples
-
Kotlin 2022-03-27 07:40:17
var and val in kotlin
val and var both are used to declare a variable. var is like general variable and it's known as a mutable variable in kotlin and can be assigned multiple times. val is like Final variable and it's known as immutable in kotlin and can be initialized only s... Add solution -
SQL 2022-02-03 09:03:35
create a quick temp table with stored procedure sql
/* First you need to create a table type. */ CREATE TYPE Names AS TABLE (Name VARCHAR(10)) ; GO /* Next, Create a procedure to receive data for the table-valued parameter, the table of names and select one item from the table*/ CREATE PROCEDURE Ch... Add solution -
PHP 2021-10-03 11:22:05
php preg_match
<?php //Syntex : int preg_match( $pattern, $input, $matches, $flags, $offset) // Declare a variable and initialize it $str = "Check For Testing."; // case-Insensitive search for the word "Check" if (preg_match("/\bChec... Add solution -
Java 2021-09-03 20:49:01
sum in range
//Java program to print the sum of numbers in a given rangeimport java.util.Scanner;public class sum_of_numbers_in_range{ public static void main(String[] args) { //scanner class declaration Scanner sc = new Scanner(System.in); //input from user Syst... Add solution