Question -What is static nested class and usage in Java Solutions- Many developers are confused and telling static nested class as static inner class.But in java, there is no static inner class. Ok.First we understand , what is inner class – inner class or nested class is a class declared entirely within the body of […]

There are multiple ways .I will list down few of them. Using Old and standard java solution – if you using Google-Collections/Guava- If you can use Apache Common library..then this is useful – Quick way but only work in deserialization process – Note:ObjectInputStream is about deserialization, and the stream have to respect the serialization protocol […]

Requirement – How to get intradoc server port in custom component in Webcenter Content. Solution – We can use one class called sharedObject which give us environment value.One of my friend(Jonathan) helped me in this. use SharedObjects.getEnvironmentValue(“IntradocServerPort”) will give you intraDocServer port. Read more on http://jonathanhult.com/intradoc-api/intradoc/shared/SharedObjects.html Quick tip in end of weekend Happy coding with […]

Requirement -Programatically update an Excel spreadsheet in Java. Solutions – Here an example of Apache POI to update a XLS workbook. Apache POI is a very good API , that can be handy in manipulating Excel documents.This tutorial focuses on XLS documents (Office 97 – 2003). The existing excel file like below – after updating […]

Requirment – How to write an excel file in Java Solutions- Well Apache POI is answer.This API will help you a lot.you have to download and add the POI JAR file to your project’s class path. The Apache POI JAR file can be found http://poi.apache.org/download.html Following is code – Happy coding with Vinay in techartifact

Requirment – How to read an excel file in Java Solutions- Well Apache POI is answer.This API will help you a lot.you have to download and add the POI JAR file to your project’s class path. The Apache POI JAR file can be found http://poi.apache.org/download.html Please note HSSF (Horrible SpreadSheet Format) – reads and writes […]

You can get the current date time via following two classes – Date and Calendar. And, later use SimpleDateFormat class to convert the date into user friendly format. -> Date() + SimpleDateFormat() -> get the time -> get the time stamp You can define various format i.e -> dd-MMM-yy HH:mm:ss -> yyyy/MM/dd HH:mm:ss -> yy/MM/dd […]

Quite annoying error and you don’t know what went wrong. Well you can resolve by yourself. First step – Search for ide.conf and jdev.conf in you JDeveloper installation folder like c/oracle/jdeveloper Second step-In ide.conf file, copy extactly these properties into that. AddVMOption -Xmx940M AddVMOption -Xms128M Third Step – In jdev.conf file, make sure the following […]

Interesting facts about the JRE – Every Java developer use each day classes from the JRE, there are some most used classes like String and Array and others less known like Corba ones. In this article we will discuss about some JRE facts that can be helpful to know. For that we will analyze the […]

Requirment- Sometime we want to execute javascript from Java in ADF.How to achieve this.below code tell you about this. Thats it. enjoy. Happy coding with Techartifact with Vinay Kumar…..