Java

Sorting in Ascending Order in Java

This article demonstrates Sorting in Ascending Order in Java. In fact, array sorting is used in nearly every kind of computer application. It is an important algorithm that we must implement efficiently. Moreover, we can implement sorting in many ways. According, several kinds of sorting algorithms exist. For instance, we have bubble sort, insertion sort, …

Java

Using Numbers As Command Line Arguments in Java

This article demonstrates a program Using Numbers As Command Line Arguments in Java. To begin with, let us first understand what is a command-line argument. In general, a command-line argument is passed to the program at the time of executing the command to run the program. In other words, when we run a Java program …

Java

Working with Classes and Objects in Java

This article describes Working with Classes and Objects in Java. Basically, class is a user-defined type. While an object is a real-world entity. Further, an object has attributes and also has a behavior. Since Java is an object-oriented language, a Java program comprises one or more classes containing certain members. Syntax of Creating a Class …

Java

JSTL Tags for Condition and Loop

In this article, I will discuss the examples of JSTL Tags for Condition and Loop. In general JSP tag Library contains <c:if>, and <c:forEach> tags for checking conditions, and loops respectively. Syntax of <c:if> Tag <c:if test=””, var=””, scope=””></c:if> Basically, the test attribute specifies the condition. While the var attribute stores the result of the …

C++

Standard Template Library in C++

Basically, Standard Template Library (STL) in C++ is a library of data structures. Hence, by using STL, we need not bother about implementing the commonly used data structures. Instead, we can focus on application-specific tasks. Therefore, Standard Template Library in C++ supports the reusability of the code. Another benefit that we get by using STL …

Java

Compute and Display Area of a Circle in Java

The following code example shows how to Compute and Display Area of a Circle in Java. Apart from being a simple program, it lets you learn many useful basic concepts of Java programming language when you have just started learning. The following section describes some of the important points. Accepting Input from User In order …