Welcome to my blog !


Deque examples with tutorials in java

February 10, 2012 ·  5 min read

Deque Object in java:- Deque is abbreviated as double-ended queue like a normal queue, can store the collection of objects. It is one of the collections class introduced in Java 6. Why deque is different from other collection classes? the answer is, in the deque, we can insert and deletes the objects from both starts, end of the collection. whereas normal collection inserts/deletes are happening at last only. Deque is interface introduced in java 6 java....

Sendgrid email tutorials in java with examples

February 10, 2012 ·  1 min read

Java project create using maven Maven has different archetypes for different application generates for web and standard java project. mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 This creates an java sample module project Next add sendgrid mvn jar file sendgrid-java in pom.xml <dependency> <groupId>com.sendgrid</groupId> <artifactId>sendgrid-java</artifactId> <version>4.7.2</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <version>1.7.30</version> <scope>test</scope> </dependency> ``` Next install the depedencies using mvn clean install command ## Sendgrid email java ```java import com.sendgrid.Method; import com.sendgrid.Request; import com....

java enums tutorial: Best 10 examples of enum in java

February 6, 2012 ·  4 min read

Enums in java:- Enum is one of the cool languages featured introduced as part of Java 5 version. enum or enumeration values are constants meaning which can not be changed. These constants are specified using upper case letters as per java coding specifications Enum is introduced in Java 5 version, Before Java 5 was introduced, we have to write our own constants to handle enum functionality as follows public class MonthsConstants{ public static final String JAN="1"; public static final String FEB="2"; ....

Top 10 examples of find command in unix and linux

February 6, 2012 ·  4 min read

Best Find command examples in linux and unix:- find command is one of frequent command used in linux and unix operating systems. find command is used by unix/linux users to search the specific files in directory as well as sub directories. I use this command as part of my programming development with java for searching logs as well as java files in linux operating system. In windows environment, users have the ability to search the any files directly using windows explore....

Hibernate criteria query | restriction projections Order by examples

January 31, 2012 ·  3 min read

Hibernate Criteria API criteria are used to select the specific type of data from the database. Let us take the use case, where the website has search capability provided, you have to search the website with different conditions, To handle this using hibernate, we can compose different parameters to Criteria object and make custom sql queries to the database to retrieve the data. Hibernate criteria API is alternative to Hibernate query language or HQL and generate complex queries using different criteria....

Subscribe
You'll get a notification every time a post gets published here.