Apache POI api for Java people


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…
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
What is Apache POI? Apache POI’s cross-platform Open Source Java APIs allow users to read and write various file formats from the Microsoft Office suite of applications, including Word, PowerPoint, Excel, Outlook, Visio, and Publisher. Apache POI is deployed in many highly-visible environments including CERN, Deutsche Bank, Freddie Mac, IBM, J.P. Morgan, Lawrence…
Following four ways are used to retrieve elements from collection object : Using for-each loop. Using Iterator Interface. Using ListIterator interface. Using Enumeration Interface. For-each loop : for-each loop is like for loop which repeatedly executes a group of statements,for each element of collection the format is for(variable:collection object) // for( String values: os) {…
Introduction : This framework was introduced in JAVA SE v 1.2 what is a collection object ? Using an object to store a group of other objects, it means that we can use a class object as an array. such an object is called ‘collection object’ or ‘container object’ . We are using collection object…
package automatedsms; // my package name /** * * @author katta vijay */ import java.util.Calendar; import java.text.SimpleDateFormat; public class DateUtils { public static String now(String dateFormat) { Calendar cal = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat(dateFormat); return sdf.format(cal.getTime()); } public static void main(String arg[]) { // different date formats System.out.println(DateUtils.now(“dd MMMMM yyyy”)); // calling now…