What do you want to save?
Add Code snippet
New code examples
-
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 -
Other 2021-09-06 12:46:02
what is jackson databind
Jackson Data-bind depdendency that take care of Converting between JSON to Java Object and Java Object to JSON <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> ... Add solution -
Java 2021-09-06 04:36:02
Java program to sort names in an alphabetical order
// java sort string characters alphabetically import java.util.Arrays; public class CharactersAlphabetically { public static void main(String[] args) { String strInput = "flowerbrackets"; // converting string to char array ... Add solution -
Other 2021-09-05 16:18:01
Can you execute a program without main() method
//This is prior to Java 7 class StaticInitializationBlock{ static{ System.out.println("class without a main method"); System.exit(0); } } Add solution -
Java 2021-09-05 02:58:02
is a and has a relationship in java
‘Has a ‘ relationship is also known as “composition or Aggregation”. As in inheritance we have ‘extends’ keyword we don’t have any keyword to implement ‘Has a’ relationship in java. The main advantag... Add solution