What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-08 04:04:04
Java program to remove consonants from a string
// Java program to remove consonants from a string import java.util.Arrays; import java.util.List; public class RemoveConsonantsFromString { public static void main(String[] args) { String str = "hello world core java"; System... Add solution -
Java 2021-09-07 05:34:02
android java retrofit offline cache
// i.g siyanda.zama 16.05.20 in the manifest folder <application //dont forget to put the name // create a java file named MyApplication.java android:name=".MyApplication" android:allowBackup="true" android:icon="... Add solution -
Java 2021-09-07 03:36:01
what is the difference between int and integer in java
int is a primitive type. Variables of type int store the actual binary value for the integer you want to represent. int.parseInt("1") doesn't make sense because int is not a class and therefore doesn't have any methods. Integer is a class, no d... Add solution -
Javascript 2021-09-07 01:18:02
add to classlist javascript
classList.item(index); // Returns the item in the list by its index, or undefined if index is greater than or equal to the list's length classList.contains(token); // Returns true if the list contains the given token, otherwise false. classList.add(token1... Add solution -
Python 2021-09-06 00:52:02
python data types
# Here are the available types in Python. Use type() to find out what # type your object is. Text Type: str Numeric Types: int, float, complex Sequence Types: list, tuple, range Mapping Type: dict Set Types: set, frozenset Boolean Type: bool Binary Typ... Add solution -
Other 2021-09-05 11:30:03
js.l4
// number => define number intiger or float. // string => define string values. // boolean => define true or false. // undefined => undefine value. // null => empty value. Example: let x = 50; // 50.12354 console.log(x); let y = 'my name... Add solution -
Java 2021-09-05 02:03:01
how to scan a String in Java
import java.util.Scanner; // import scanner Scanner myScanner = new Scanner(System.in); // Make scanner obj String inputString = myScanner.nextLine(); // Take whole line boolean inputBoolean = myScanner.nextBoolean(); //Boolean input long inputLong ... Add solution