Apache POI api for Java people


this program simply explains how to read data from the MS wordfile(.DOC) line by line using Apache POI, what is Apache POI and what is the need i already explain in previous post, you can find that post here for executing this program we need to download Apache POI api and make jar files in…
Algorithms for coding interviews! 1. Object oriented programming 2. Data Structures (String*, Arrays, HashMap*, etc..) 3. Stacks and Queues 4. Iterative algorithm 5. Recursive function 6. Binary search 7. Tree traversal* 8. Sorting algorithm 9. Dynamic programming* * marked as very important #programming #javaprogramming #techinterview #codinginterview #toptechinterview
In this post I’m going to use the properties(java.util.properties) class in database conenction, package Oracle.connection; import java.sql.*; import java.util.Properties; /** * * @author kattavijay */ public class DBConnect_Properties { public static void main(String a[])throws Exception { String url="jdbc:oracle:thin:@localhost:1521"; String username="scott"; String passwd="tiger"; Properties prop=new Properties(); prop.put("user",username); prop.put("password",passwd);…
Date and Time API new feature in Java8 , mainly these objects are immutable and thread safe , these API contains four packages , java.time.*; java.time.chrono.*; java.time.format.*; java.time.temporal.*; java.time.zone.*; now we will see how to make use of these libraries in our programming usage . here i’m taking a sample class that will print…
calculating latencies , for a program , query or an service / project ., after little research here i am deriving mechanism to calculate latencies, first iam considering database : here my aim is calculate execution time for a query. >before executing the query run ‘set timing on’ comamnd in sql command line >after this…
using Java we can read the data from Excel sheets by creating type1 driver , but here we are taking help of JExcelapi we can able to read data directly from the Excel sheets. steps to be follow: step 1: download JExcel api from here step2: after downloading extract the zip file. make jxl.jar available…