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.

Java program to find given number is palindrome or not

Suryateja Pericherla Categories: Basic. No Comments on Java program to find given number is palindrome or not

In this article we will learn to implement a Java program to find given number is palindrome or not. A Java program is provided below which reads a number and prints whether it is a palindrome or not.   A palindrome is one which is same after reversing it. For example, if you take a […]

Read the rest of this entry »

Java program to find the reverse of a given number

Suryateja Pericherla 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

Suryateja Pericherla 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

Suryateja Pericherla 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

Suryateja Pericherla 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 »

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

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

In this article we will learn to implement a Java program to print odd numbers in the range 1 to n. A java program is provided below that reads n value from the user and prints the odd numbers in the range 1 to n.   Program is as follows: import java.util.Scanner; public class Driver […]

Read the rest of this entry »

Java program to find the largest of three numbers

Suryateja Pericherla Categories: Computer Science. No Comments on Java program to find the largest of three numbers

In this article we will learn to implement a Java program to find the largest of three numbers. A Java program is provided below which reads three numbers from the user and prints the largest number among them.   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 print sum of first n natural numbers

Suryateja Pericherla Categories: Basic. No Comments on Java program to print sum of first n natural numbers

In this article we will learn to implement a Java program to print sum of first n natural numbers. A Java program is provided below which reads n and prints the sum of the first n natural numbers.   Following program reads a number n from the user and displays the sum of first n […]

Read the rest of this entry »

Java program to compute the sum of digits in a given integer

Suryateja Pericherla Categories: Basic. No Comments on Java program to compute the sum of digits in a given integer

In this article we will learn to implement a java program to compute the sum of digits in a given integer. A java program is provided below which reads a number from the user and prints out the sum of individual digits in the given number. For example, if the given number is 1234, program […]

Read the rest of this entry »

Java program to print Fibonacci series up to n terms

Suryateja Pericherla Categories: Basic. No Comments on Java program to print Fibonacci series up to n terms

In this article we will learn to implement a Java program to print Fibonacci series up to n terms. A java program is provided below which accepts the number of terms to display in the Fibonacci series and prints it:   Program is as follows: import java.util.Scanner; public class Driver { public static void main(String[] […]

Read the rest of this entry »
Blogarama - Blog Directory