How-to articles, tricks, and solutions about JAVA
Convert JsonObject to String
To convert a JsonObject to a String in Java, you can use the JsonObject.toString method.
Convert String array to ArrayList
To convert a String array to an ArrayList in Java, you can use the following steps:
Converting a string to an integer on Android
To convert a string to an integer in Android, you can use the Integer.parseInt method.
Converting characters to integers in Java
There are a few ways to convert a character to an integer in Java.
Converting double to integer in Java
To convert a double to an int in Java, you can use the intValue() method of the Double class.
Converting JSON data to Java object
To convert JSON data to a Java object, you can use the fromJson method of the Gson class.
Correct way to add external jars (lib/*.jar) to an IntelliJ IDEA project
To add external JAR files to an IntelliJ IDEA project, you can follow these steps: