Startertutorials Blog
Tutorials and articles related to programming, computer science, technology and others.
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.

Generic Programming in C++ Programming

Categories: C++ Programming. No Comments on Generic Programming in C++ Programming

This article provides a comprehensive overview of generic programming in C++ programming language along with example programs.   Introduction To generate short, simple code and to avoid duplication of code, C++ provides templates to define the same piece of code for multiple data types. With templates, programmers can define a family of functions or classes […]

Read the rest of this entry »

Java program to reverse the array inplace

Categories: Arrays. 2 Comments on Java program to reverse the array inplace

In this article we will learn to implement a Java program to reverse the array. A Java program is provided below which reverses an array in-place (without using extra memory).   Following program reads an array of elements and reverses the array in place i.e., without using any temporary array: import java.util.Scanner; public class Driver […]

Read the rest of this entry »

Java program to find the maximum and minimum value of an array

Categories: Arrays. No Comments on Java program to find the maximum and minimum value of an array

In this article we will learn to implement a Java program to find the maximum and minimum value of an array. A java program is provided below which reads array elements from the user and finds out the maximum, minimum elements in the array.   Program is as follows: import java.util.Scanner; public class Driver { […]

Read the rest of this entry »

Java program to check whether the number is an armstrong number or not

Categories: Basic. No Comments on Java program to check whether the number is an armstrong number or not

In this article we will learn to implement a Java program to check whether the number is an armstrong number or not.   Armstrong number is one in which the sum of the cubes of individual digits is same as the given number. For example if you take the number 153, (1^3) + (5^3) + […]

Read the rest of this entry »

Java program to find the reverse of a given number

Categories: Basic. No Comments on Java program to find the reverse of a given number

In this article we will learn to implement a Java program to find the reverse of a given number. A Java program is provided below which reads a number from the user and prints the reverse of that number:   Program is as follows: import java.util.Scanner; public class Driver { public static void main(String[] args) […]

Read the rest of this entry »

Java program to find the factorial of a number using recursion

Categories: Basic. No Comments on Java program to find the factorial of a number using recursion

In this article we will learn to implement a Java program to find the factorial of a number using recursion. A Java program is provided below to read a number and print the factorial of that number.   Following program reads a number form the user and prints its factorial using recursion: import java.util.Scanner; public […]

Read the rest of this entry »

Java program to check if a given character is vowel or consonant

Categories: Basic. No Comments on Java program to check if a given character is vowel or consonant

In this article we will learn to implement a Java program to check if a given character is vowel or consonant. Following Java program reads a character from the user and prints out whether it is a vowel or not: import java.util.Scanner; public class Driver { public static void main(String[] args) { Scanner input = […]

Read the rest of this entry »

Java program to print even numbers in the range 1 to n

Categories: Basic. No Comments on Java program to print even numbers in the range 1 to n

In this article we will learn to implement a Java program to print even numbers in the range 1 to n. Following java program reads n value from the user and prints even numbers in the range 1 to n.   Program is as follows: import java.util.Scanner; public class Driver { public static void main(String[] […]

Read the rest of this entry »