What do you want to save?
Add Code snippet
New code examples
-
Java 2022-02-20 07:35:23
encapsulation in java
Encapsulation in Java is a mechanism to wrap up variables and methods together as a single unit. It is the process of hiding information details and protecting data and behavior of the object. It is one of the four important OOP concepts. The encapsulat... Add solution -
C 2022-02-19 19:55:11
What is Array?
• An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed. You have seen an example of arrays already, in the main m... Add solution -
Shell/Bash 2022-02-16 08:45:03
how to clear a port in linux
netstat -tulnap // list all ports and processes netstat -anp|grep "port_number" // show port details sudo fuser -k Port_Number/tcp // free the port needed # or lsof -n -i :'port-number' | grep LISTEN // get port details # sampl... Add solution -
Java 2022-02-15 14:50:19
how to print the map in java
import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.stream.Stream; class MapUtil { // Program to print all keys present in the Map using keySet() in Java public... Add solution -
Java 2022-02-12 07:20:51
ip adress format control java
import java.util.regex.Matcher; import java.util.regex.Pattern; // Java program to validate an IPv4 address class Main { // an IPv4 address private static final String INET4ADDRESS = "172.8.9.28"; private static final String IPV4_REGEX = ... Add solution -
Javascript 2022-02-12 05:45:08
same name different extentions react-native android
~/third-workspace/TestPackage/android$ ./gradlew assembleGvrRelease Incremental java compilation is an incubating feature. :app:preBuild UP-TO-DATE :app:preGvrReleaseBuild UP-TO-DATE :app:checkGvrReleaseManifest :app:preGvrDebugBuild UP-TO-DATE :app:preOv... Add solution -
CSS 2022-02-12 03:25:06
singleton pattern
Singleton Design Pattern is basically limiting our class so that whoever is using that class can only create 1 instance from that class. I create a private constructor which limits access to the instance of the class. Than I create a getter metho... Add solution