What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-28 09:28:06
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 -
Java 2021-09-28 03:58:02
add java 8 support to pom
<!-- Force Eclipse and Maven to use a Java 8 JDK compiler--> <properties> <maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.source>1.8</maven.compiler.source> </properties> Add solution -
Java 2021-09-27 23:54:07
how to compare strings java
******Java String compareTo()****** The Java String class compareTo() method compares the given string with the current string lexicographically. It returns a positive number, negative number, or 0. ___________________________________________ ... Add solution -
Other 2021-09-27 16:30:02
install gradle on ubuntu
sudo apt update sudo apt install openjdk-8-jdk -y java -version wget https://services.gradle.org/distributions/gradle-5.0-bin.zip -P /tmp sudo unzip -d /opt/gradle /tmp/gradle-*.zip ls /opt/gradle/gradle-5.0 sudo nano /etc/profile.d/gradle.sh ####/etc/p... Add solution -
Other 2021-09-27 10:03:02
android listview to recyclerview
Import dependency. Replace ListView with RecyclerView. Replace ListView with RecyclerView in the Java file. Update the adapter. Update the ViewHolder. Update the constructor. Override onCreateViewHolder method. Override onBindViewHolder method. Modify get... Add solution -
Java 2021-09-26 23:50:05
why python is slower than java
Python is dynamically typed, while Java is statically typed. That's very important when we're talking about speed, because it is actually noticeable in compilation time. Generally speaking, we could say that Python launches faster and runs slower, whil... Add solution -
-
Java 2021-09-26 19:29:04
java multiline string
//text blocks were introduced in Java 13 as a Preview feature and in Java 15 as a full feature: String a = """"""; // no line terminator after opening delimiter String b = """ """; // no line ... Add solution
Best helpers
Ranking is empty