Saturday, 30 September 2017

Java 9 features - Collections Update

Java 9 features - Collections Update

Java 9 features - Collections Update
Finally, Java 9 is out and it's high time to go through and discuss the issues of previous JDK releases and discuss the benefits of recently release JDK 9 features. Changing in Collections is one of the features that is of particular interest to developers and is discussed in this article.

Some
Read More about it from the following link : http://coding-guru.com/java-9-features-collections-update/ posted by Gul


Sunday, 24 September 2017

Java 9 Support for Eclipse IDE and 1st Java 9 Example

Java 9 Support for Eclipse IDE and 1st Java 9 Example

Java 9 Support for Eclipse IDE and 1st Java 9 Example
Recently java 9 has been released and support to make your eclipse IDE ready to build, debug and run Java 9 code. Java 9 applications are available at Eclipse Marketeplace and you may install it from Marketeplace client in the Eclipse IDE by going to Help-> Eclipse Marketeplace or by dragging
Read More about it from the following link : http://coding-guru.com/2709-2/ posted by Gul


Tuesday, 1 August 2017

Advance Streams Operations

Advance Streams Operations

Advance Streams Operations
Plethora of different operations available with streams. Some basic and very important operations are already been discussed in previous article (read it from here). Let's see how collect, flatMap and reduce operations works.
How to use Collect operation in streams?
Collect is used to transform
Read More about it from the following link : http://coding-guru.com/advance-streams-operations/ posted by Gul


Streams in Java

Streams in Java

Streams in Java
Java stream API is available in java 8 and is completely different from InputStream and OutputStream of  java I/O. Streams are playing a vital role to bring functional programming to java. In this tutorial you will learn the most powerful operations offered by streams API such as reduce, collect,
Read More about it from the following link : http://coding-guru.com/streams-in-java-java-8-api/ posted by Gul


Monday, 31 July 2017

Functional Interfaces in Java

Functional Interfaces in Java

Functional Interfaces in Java
Java 8 introduced lambda expressions, which allowed us to write short and simple code using default interface methods, lambda expressions, method reference and repeatable annotations.  As we know java is a strongly typed language and it is mandatory to declare types but designers of lambda
Read More about it from the following link : http://coding-guru.com/functional-interfaces-in-java/ posted by Gul


Tuesday, 18 July 2017

Interfaces in Java

Interfaces in Java

Interfaces in Java
//

Interfaces in java are same like an abstract class, it does not attribute definition and all of its methods are abstract. An interface don't have constructors and can't be instantiated.  From Java 8 onward non abstract methods can be included in the interface by using default keyword. These
Read More about it from the following link : http://coding-guru.com/interfaces-java/ posted by Gul


Saturday, 15 July 2017

Map Interface in Java

Map Interface in Java

Map Interface in Java
Before proceeding with this article, If you are a new reader and you are not much familiar about collections. Read this article for more information ( Collections in java). Following are the key points to remember about Map and HashMap in java.

Maps keys to values and can't contain duplicate
Read More about it from the following link : http://coding-guru.com/map-interface-in-java/ posted by Gul


Friday, 14 July 2017

Collections in Java

Collections in Java

Collections in Java


Arrays are used in java to store several objects. The issue with array is that it does not support dynamic allocation. It has a fixed length which is not changeable once it is declared. Moreover, array is a very simple linear structure and many applications require more flexible and complex
Read More about it from the following link : http://coding-guru.com/collections-in-java/ posted by Gul


Sunday, 14 May 2017

How to work with gradients in CSS3

How to work with gradients in CSS3

How to work with gradients in CSS3
How to work with gradients in CSS3
CSS3 gradients are used to display smooth transitions between two or more colors. Images were used earlier to display effects, but now in CSS3 we can use gradients. Gradients  save bandwidth and load time. In a previous tutorial you learned about CSS3 Pseudo
Read More about it from the following link : http://coding-guru.com/how-to-work-with-gradients-in-css3/ posted by Maz


How to work with gradients in CSS3

How to work with gradients in CSS3

How to work with gradients in CSS3
How to work with gradients in CSS3
CSS3 gradients are used to display smooth transitions between two or more colors. Images were used earlier to display effects, but now in CSS3 we can use gradients. Gradients  save bandwidth and load time. In a previous tutorial you learned about CSS3 Pseudo
Read More about it from the following link : http://coding-guru.com/how-to-work-with-gradients-in-css3/ posted by Maz


Friday, 12 May 2017

Image Pyramid - Expanding Image

Image Pyramid - Expanding Image

Image Pyramid - Expanding Image




(adsbygoogle = window.adsbygoogle || []).push();


Image pyramid is widely used in computer vision which allow us to convert an image / frame to a different size ( smaller or larger ) than its original size. There are two possible method available in openCV which allow us to up size
Read More about it from the following link : http://coding-guru.com/image-pyramid-expanding-image/ posted by Gul


Saturday, 6 May 2017

Enum Types in Java

Enum Types in Java

Enum Types in Java
//

Java provided Enum types are very powerful than other programming languages. Following are the main points one should remember about java enum types.

enum type is defined using enum keyword
enum type is a special data type that allows a variable that consist of a predefined
Read More about it from the following link : http://coding-guru.com/enum-types-java/ posted by Gul


MongoDB - $exists and $regex operator

MongoDB - $exists and $regex operator

MongoDB - $exists and $regex operator
//

$exists

As mongoDB is  schema less. In database some table can have different schema. for example if we have Persons database and

in that database we have people collection.  If we need to know that whether a certain field exists in collection or not.

Syntax: { field: { $exists:
Read More about it from the following link : http://coding-guru.com/mongodb-exists-and-regex-operator/ posted by Maz


Define Classes and Objects in Java

Define Classes and Objects in Java

Define Classes and Objects in Java
//

This tutorial will help you to define your own classes, including a set of data fields, methods, constructors, using classes by creating objects and invoke methods.
Class
A class describes the structure and behavior of similar objects. It is also described as a blue print, pattern,
Read More about it from the following link : http://coding-guru.com/define-classes-and-objects-in-java/ posted by Gul


Linux - Remove a directory with all files

Linux - Remove a directory with all files

Linux - Remove a directory with all files
//

In Linux if we need to remove a directory it can be done using command

rmdir dirname

But if directory is not empty then system will through an error.

rmdir scripts


This error comes up:

rmdir: failed to remove `scripts': Directory not empty

To remove a directory that is
Read More about it from the following link : http://coding-guru.com/linux-remove-a-directory-with-all-files/ posted by Maz


Method Overloading in Java

Method Overloading in Java

Method Overloading in Java
//

When two or more then two methods sharing same name within the same class, having different type of parameters or different number of parameters. This is known as method overloading.

public class MethodOverload {

public static void main(String[] args) {
System.out.println("The
Read More about it from the following link : http://coding-guru.com/method-overloading-in-java/ posted by Gul


Creating a method in Java

Creating a method in Java

Creating a method in Java
//

Creating a method in Java
A method is a set of statements grouped together to perform an operation.

Generally there are two types of methods.

User defined methods : Usually a user creates to add additional functionality
Predefinde methods :  Such methods are already written and
Read More about it from the following link : http://coding-guru.com/creating-a-method-in-java/ posted by Gul


Selection statements in Java

Selection statements in Java

Selection statements in Java
//

Java provides selection statements, such statements can be used where you have to choose actions with two or more then two alternative options. Such statements enrich to take frequent decision based on particular situation. The pseducode of if-else structure is as follows.

if (boolean
Read More about it from the following link : http://coding-guru.com/selection-statements-in-java/ posted by Gul


Strings in Java

Strings in Java

Strings in Java
//

Strings

Representing a set of characters altogether,  we can define the data type String is used. For example, Following line declares and initialize a String has an initial value "Welcome to Java" String str = "Welcome to Java";
String is predefined java class same like System,
Read More about it from the following link : http://coding-guru.com/strings-and-text-io-in-java/ posted by Gul


Saturday, 18 February 2017

Variables / Fields in Java

Variables / Fields in Java

Variables / Fields in Java
//


Declaring Variables

Before using any variable, give it a name and data type. This is known as declaring a variable. The syntax for declaring a variable is
dataType indentifier;
or
dataType identifier1, identifier2,.......;

Java objects stores states in fields. Java programming
Read More about it from the following link : http://coding-guru.com/java-variables-fields/ posted by Gul


Operators in Java

Operators in Java

Operators in Java
//

In my previous article i explained, how to declare and initialize variables. In this article, i will explain how to perform different operations on them. Java operators are special symbols used to perform specific operations on one, two or three operands and returns the result.



Above
Read More about it from the following link : http://coding-guru.com/operators/ posted by Gul


Type Casting in Java

Type Casting in Java

Type Casting in Java
//

This tutorial covers only primitive data type casting which explains converting a value of type double  to an int or an int to a double. Casting Object / reference variable will be covered in next tutorial.

Numerical data are called primitive data types
Objects are called reference
Read More about it from the following link : http://coding-guru.com/type-casting/ posted by Gul


HTML5 - An Introduction

HTML5 - An Introduction

HTML5 - An Introduction
//

HTML5 is the fifth version and latest standard from W3C. It is not just confined to a mark up language, infact HTML5 is the combination of HTML5 elements, CSS3 style and JavaScript animations. It has many new features which provide not only media support but also enhance support for
Read More about it from the following link : http://coding-guru.com/html5-basic-elements/ posted by Heera Rasheed


Strings in Java

Strings in Java

Strings in Java
//

Strings

Representing a set of characters altogether,  we can define the data type String is used. For example, Following line declares and initialize a String has an initial value "Welcome to Java" String str = "Welcome to Java";
String is predefined java class same like System,
Read More about it from the following link : http://coding-guru.com/strings-and-text-io-in-java/ posted by Gul