Core java
01 AprilJava program to reverse linked list in pairs
If you want to practice data structure and algorithm programs, you can go through data structure and algorithm interview questions. This is one of popular interview question. In this post, we will see how to reverse linked list in pairs. Java Linked List Interview Programs: How to reverse a linked list in java How to reverse […]
28 MarchAngularJS Restful web service example using $http
This post is in continuation with AngularJS web services tutorial Introduction to web services Web services interview questions SOAP web service introduction RESTful web service introduction SOAP web service example in java using eclipse JAX-WS web service eclipse tutorial JAX-WS web service deployment on tomcat Create RESTful web service in java(JAX-RS) using jersey RESTful web […]
18 FebruaryWorking with formulas in excel using Apache POI in java
Java Apache POI tutorial: Read excel files in java using POI Write excel files in java using POI Working with formula in excel using POI How to set style in excel using POI In this post, we will see how to set and evaluate formulas in excel using Apache POI. Set formula for a cell: […]
17 FebruaryHow to set style in excel using Apache POI in java
In this post , we will see how to set style in excel using apache poi. You can put cell style with below code: [crayon-6a281f69db55a997375264/] Java Program : [crayon-6a281f69db560437619592/] When you run above program, you will get following output: [crayon-6a281f69db562442599994/] Lets see content of CountriesDetails.xlsx now.
15 FebruaryHow to write Excel files in java using Apache POI
In this post, we will see how to write excel in java using Apache POI example. About Apache POI project : The Apache POI Project’s mission is to create and maintain Java APIs for manipulating various file formats based upon the Office Open XML standards (OOXML) and Microsoft’s OLE 2 Compound Document format (OLE2). In short, […]
13 FebruaryHow to read excel files in java using Apache POI
In this post, we will see how to read excel in java using Apache POI example. About Apache POI project : The Apache POI Project’s mission is to create and maintain Java APIs for manipulating various file formats based upon the Office Open XML standards (OOXML) and Microsoft’s OLE 2 Compound Document format (OLE2). In […]
13 FebruaryHow to detect OS in java
In this post, we will see how to detect OS which you are using. You can use System.getProperty(“os.name”) to get current OS name. Sometimes , we need to write logic based on OS, so we get use this logic to detect current OS. Java Program: [crayon-6a281f69df7c7584256001/] I am using Mac os to run above program. […]
13 FebruaryHow to get home directory in java
In this post, we will see how to get user profile’s home directory in java. It is quite simple, we can use System.getProperty(“user.home”) to get it. Java program: [crayon-6a281f69e16ec884398365/] When I ran above program, I got below output: [crayon-6a281f69e16f6425278192/]
12 FebruaryHow to move file to another directory in java
In this post, we will see how to move file to another directory in java. We will use java.io.File ‘s rename(File dest) to do it. In below example, we will move config_new.properties from /Users/Arpit/Desktop/Folder1 to /Users/Arpit/Desktop/Folder2 . Java Program: [crayon-6a281f69e1814693593681/] When I ran above program, I got following output: [crayon-6a281f69e1818881290528/]