Multithreading Program in Java with online shop scrap Example

Multithreading Program in Java with online shop scrap Example

Multithreading Program in Java with online shop scrap Example: Multithreading is a process of executing multiple threads at a time. In our below example, we are sending the book ISBN number to 3 different online shops to scrap and get the price details. Final scrapped price details are written as JSON data. We have implemented multithreading in the below program

139 total views, no views today

» Read more

Creating Image using Java Without any Extra Libs

Creating Image using Java Without any Extra Libs

Creating Image using Java Without any Extra Libs: Images are more interactive way to present the contents rather than presenting everything in plain texts. Dynamic content images can be created using java without any extra libs /additional libraries. Creating dynamic images can be automated using the below java program.   Requirement: No Additional/Extra Libraries. Need to give any background image

183 total views, 4 views today

» Read more

How to Read CSV File in Java?

How to Read CSV File in Java?: CSV file is delimited by comma by default. This program explains how to split the fields and read line by line contents from the given csv file.   Requirements: It does not need any additional jars.   Steps in overview: Read the input csv file using FileReader. BufferedReader takes the filereader as input

123 total views, no views today

» Read more

5 Must to know differences in java

5 Must to know differences in java: Being a java developer, you must know this 5 differences, because which tells about your correct and deep understanding of this programming language, as well as it is very basic to know in java. 1. As everyone know String is the heart part in java. Because very difficult to write a simple utility/business

266 total views, no views today

» Read more

How to Read Excel File xlsx in Java using Apache Poi?

How to Read Excel File xlsx in Java using Apache Poi?

How to Read Excel File xlsx in Java using Apache Poi?: Excel files are now two different versions, Microsoft Excel 97-2003 Worksheet (.xls) and Microsoft Excel Worksheet (.xlsx). In the below post we are going to see how to read the microsoft excel worksheet xlsx file using apache poi jars. All the required jars, sample excel(.xlsx) files are attached with

301 total views, no views today

» Read more

How to Read XML file using Java without any Extra Libs ?

How to Read XML file using Java without any Extra Libs ?: XML file can be read using jdom parser, but here we are going to read xml file only with the javax xml parsers and w3c dom components.   Steps in overview: DocumentBuilder should be initialized with newDocumentBuilder() of builderfactory class. New Document created with document builder. Using¬†getElementsByTagName() root

152 total views, no views today

» Read more

7 Performance Tuning Tips in Java

7 Performance Tuning Tips in Java: Before start doing performance tuning/optimizations, first use any profiler to identify the areas for optimizations using profilers   Few Java Profilers: yourkit jProfiler Java Flight Recorder Eclipse Test & Performance Tools Platform Project   1. Use available data structures or algorithms: If you want to convert list to set or vice versa, instead of

307 total views, 1 views today

» Read more
1 2 3 4 20