These Java examples were tested with Java version 1.7 or higher. NetBeans has been used as editor and Maven to organize each project. When necessary, the dependency with the libraries is included. You can see how to create projects in Maven with NetBeans or Eclipse in this link:
See how to create Java projects with Maven in NetBeans and Eclipse
Basic Java Examples
- Create text file in Java
- Read a text file in Java
- Create an XML file in Java
- Get information from a file in Java
- Read XML files in Java
- Read an XML file with SAX Parser in Java
- Create a PDF with Apache FOP in Java
- Create Excel file with Apache POI in Java
- Read Excel file with Apache POI in Java
- Database Connection with JDBC in Java
- Extract files from a ZIP in Java
- Create ZIP files in Java
- Copy files in Java
- Rename a file in Java
- Create directory or folder in Java
- List and Filter Files with FileFilter in Java
- Delete a file in Java
- Json with Google Gson in Java
- Apache Commons-IO FileUtils in Java
- Create a Graphic Interface with JavaFX
- Display an Image in JavaFX
- Base64 Encoding and Decoding in Java
- Regular expressions in Java
Basic concepts
More Java samples that let you try out the language and experience basic concepts.