Skip to content
Home
Collections
Java Quiz
Search for...
Navigation Menu
Search for...
Navigation Menu
Home
Collections
Java Quiz
Java Code Examples: Ready-to-use Java examples that you can use directly in your Java programs. Learn from basic to advanced concepts by Java examples and coding samples.
Java Tutorials
Apache Commons
Array
ArrayList
Arrays
Basic Examples
Collection Framework
Comparable
Comparator
File
HashMap
HashSet
Hashtable
Iterator
Jsoup
LinkedHashMap
LinkedHashSet
LinkedList
ListIterator
Math
RegEx
String
StringBuffer
StringBuilder
StringTokenizer
TreeMap
TreeSet
Type Conversions
Vector
Collection Examples
Java ArrayList insert element at beginning example
Find Minimum Maximum value in ArrayList
Java ArrayList remove last element example
Java print ArrayList example
Basic Examples
Example Employee Class
Java array indexOf example
Example Student class
Java String array initialize example
RegEx Examples
Count occurrences of substring in string in Java example
Remove HTML tags from String in Java example
Check if String starts with a number in Java example
Java Regular Expression Remove Leading Zeros Example
IO Examples
java.io.FileNotFoundException (Access is denied) – Causes and Fix
Make file hidden in Java example
Delete a file or directory in Java
Java create directory example
Date & Time Examples
Java Regular Expression Validate Date Example (RegEx)
String Examples
Count occurrences of substring in string in Java example
Mask part of string example in Java
Check if String is uppercase in Java example
Remove HTML tags from String in Java example
Latest Examples
Gson – Serialize HashMap null entries
Gson: Convert String to JsonObject without POJO
Gson – Convert JSON to a Typed ArrayList
Gson – Loop & Iterate JSON Array
Gson – Get All Keys from JSON Object
Gson – Solution: Expected BEGIN_ARRAY but was BEGIN_OBJECT
Gson – Fix: Expected BEGIN_OBJECT but was BEGIN_ARRAY
Gson – MalformedJSONException Fix
Gson – Exclude or Ignore Specific Fields
Gson – Date Format Java Example
Gson – Convert Java List to JSON Array Example
Gson – Convert JSON Array to List Example
Gson – Remove Key from JSON example
Gson – How to Update JSON Value
Gson – Convert HashMap to JSON
Gson – Convert JSON to HashMap
Gson – Parse JSON Array
Gson – Convert JSON to Java object
Gson – Write JSON to a File with Pretty Print
Gson – Write JSON to a file