Category Archives: Uncategorized

JAVA : How to convert YAML Documents to JSON List?


Here is code to convert YAML documents to JSON objects by Jackson and snakeyml apis. Jackson also support YAML support. Continue reading

Advertisements
Posted in Java, JSON, Uncategorized, YAML | Tagged , , , , , | Leave a comment

JAVA : How to convert YAML To JSON?


Here is code to convert YAML document to JSON by Jackson and snakeyml apis. Jackson also support YAML support. Continue reading

Posted in Java, JSON, Uncategorized, YAML | Tagged , , , , , | Leave a comment

Difference between YAML and JSON


Diffrence between YAML and JSON.
YAML VS JSON
JSON VS YAML Continue reading

Posted in Java, JSON, Uncategorized, YAML | Tagged , , , , , , , | Leave a comment

YAML Introduction


YAML(Ain’t Markup Language) is a human friendly , cross language, unicode based data serialization format designed for interaction with all programming languages. yAML area of uses and Goals. Continue reading

Image | Posted on by | Tagged , , , , , , , | Leave a comment

[Solved] Maven: No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK


This maven exception occurs  when your Window/Unix environment variable for JAVA_HOME and PATH are pointing to JRE instead of JDK. That’s why maven will not compile code and throw below exception. Continue reading

Posted in Exception, Maven, Uncategorized | Tagged , , , , , , | Leave a comment

[Solved] java.lang.ArithmeticException: / by zero in JAVA


java.lang.ArithmeticException is Unchecked exception and sub class of java.lang.RuntimeException. It’s thrown when an exceptional condition occurred in Arithmetic Operations. It can also occurred by virtual ma chine as if suppression were disabled and /or the stack trace was not writable. Examples and How to fix? Continue reading

Posted in Example, Exception, Java, Uncategorized | Tagged , , , , , | Leave a comment

[Solved] NullPointerException In Java


NullPointerException is Runtime Exception and Unchecked Exception which thrown when trying to access an object which is having value as null.
What is Null Value?
Cases when NullPointerException Happen?
How to avoid NullPointerException Continue reading

Posted in Example, Exception, Java, Uncategorized | Tagged , , , , , , , , , , | Leave a comment

How to Swap two Numbers with and with out temporary variable.


How to Swap two Numbers with and with out temporary variable. 1: swap Numbers with temporary variable 2: Swap Numbers without temporary variable by Addition and Subtraction 3: Swap Numbers without temporary variable by multiplication and division Continue reading

Posted in Algorithm, Data Structure, Java, Programming Test, Uncategorized | Tagged , , , , , | 1 Comment

How to exclude fields from JSON while parsing by GSON/GsonBuilder?


exclude fields from JSON while parsing by GSON/GsonBuilder?
@Expose and CustomeExclusionStrategy Continue reading

Posted in GSON, JSON, Uncategorized | Tagged , , , , , , , | 1 Comment

How to do JSON pretty formatting and Null Serialization (GSON/GsonBuilder)


How to do JSON pretty formatting and Null Serialization (GSON/GsonBuilder) Continue reading

Posted in GSON, JSON, Uncategorized | Tagged , , , , , , | 2 Comments

GSON Introduction


Gson is an open source Java library to serialize and de-serialize Java objects to/from JSON. Gson can work with arbitrary Java objects including pre-existing objects that you do not have source code. Continue reading

Posted in GSON, JSON, Uncategorized | 1 Comment

How to Convert JSON data from file to ArrayList?


Example JSON To JAVA ArrayList conversion by Jackson API’s by reading from File Continue reading

Posted in Java, JSON, Uncategorized | Tagged , , , , | Leave a comment

How to Convert JSON to Java Object and Java Object to JSON?


Example JSON To JAVA Object and JAVA Object to JSON conversion by Jackson API’s . Continue reading

Posted in Java, JSON, Uncategorized | Tagged , , , , , , | Leave a comment

Java, How to convert List to Arrays and Array to ArrayList


In our day to day programming sometime use this conversion by using iteration but there is another way by using Java API’s as below. ArrayList to Arrays List provide toArray() method to convert list elements in Arrays. Example : Arrays … Continue reading

Posted in Java, Uncategorized | Tagged , , , , , , | Leave a comment

[Solved] Elasticsearch “high disk watermark exceeded on one or more nodes”


This issue happen on Elasticsearch anytime   because your diskspace storage reached to more than 85% because in elasticsearch by default watermark is 85% of disk storage after reaching this limit elasticsearch stop working and print below warning in logs. Solution : We … Continue reading

Posted in Uncategorized | Leave a comment