An array of Objects and Object Initializer

In this article, I will explain how to use An array of Objects and Object Initializer in C#. To begin with, let us first understand what is an array. Basically, an array is a collection of elements, all of which have the same data type. Further, in a programming language such as C#, we can have both the built-in types […]

VB Dot NET Practice Exercise

The following VB Dot NET Practice Exercise will help you learn and practices this language. Basically, VB.NET is for Rapid Application Development (RAD). Further, the following exercise contains both Console applications and Windows Forms applications. List of Programs in VB Dot NET Practice Exercise This VB Dot NET Practice Exercise also contains solutions to these programs. 1) WAP to display “Hello World” […]

Find Mean, Median, and Mode in a List in Python

The following code example shows how to Find Mean, Median, and Mode in a List in Python. While, we find mean by summing up all elements in the list, the procedures to find median, and mode are different. In fact, the median is the middlemost element. Therefore, we need to choose the element at the middle index in the list […]

Find Prime Numbers in Given Range in Python

Today I will explain a simple application to Find Prime Numbers in Given Range in Python. In order to find the prime number in the given range, first, we need to set the range. For this purpose, we take two variables – upperlimit, and lowerlimit respectively. Also, take the input from the user in these two variables. Further, we need […]

JSTL Tags for Decision Making and Loop

This article discusses the JSTL Tags for Decision Making and Loop. Basically, in Java, we have if and switch…case statements for decision making. Likewise, we have for loop, while loop, and do..while loop in Java. JSP Tag Library (JSTL) provides several tags for decision-making and loops. While, the c:if tag works like an if statement in Java, there are three […]

More JSTL Examples

This article contains some more JSTL Examples. To begin with, the three tags that provide the functionality of the switch…case statement in Java are discussed. c:choose Tag Basically this tag work like the switch…case statement in Java and provides a mutually exclusive conditional operations. c:when Tag Likewise, the c:when tag works as a Case statement in switch….case statement of Java. Therefore, witin the c:choose tag, we can specify several c:when tags according […]

When and How to Use JSTL Tags

In this article, I will explain When and How to Use JSTL Tags. Basically, we can use JSTL tags in place of the scriptlet. When to Use JSTL Tags? In general, we use the JSP Tag library in the following situations. For the purpose of reducing the number of lines of code, the corresponding JSTL tag is a good choice. […]

Running Instructions in an Interactive Interpreter in Python

This article demonstrates several examples of Running Instructions in an Interactive Interpreter in Python. In order to work with a python command-line interpreter, first, you need to install python. After that launch the command prompt and enter the python command as given below. Further instructions can be given on this command-line interpreter. The following code shows the basic syntax of […]

A Login Application using JSP, Servlet, and JDBC

The following example shows A Login Application using JSP, Servlet, and JDBC. Specifically, the Login.jsp file creates a client-side form that allows users to enter their credentials. Once, the user enters data and clicks on the Submit button, the LoginServlet executes. Furthermore, the database table used here is named myusers. The following figure shows the data stored in this table. Login.jsp LoginServlet.java Since the method […]

Find a Palindrome Number in VB.NET

The following example shows how to Find a Palindrome Number in VB.NET. To begin with, let us first understand what a palindrome number is. Basically, a palindrome number is a number that is equal to the number obtained by reversing the given number. Therefore, a palindrome number remains the same when we reverse its digits. Also, it is called a numeral palindrome. Further, […]