Tag Archives: Java language
- Home
- Posts Tagged "Java language" (Page 16)
- On
- By
- 0 Comment
- Categories: Find elements
Program to find largest number among three numbers in Java
Program to find the largest number among three numbers in Java In this program, we will discuss a simple concept of the program to find the largest number among three numbers in Java programming language. In this topic, we learn how to find the biggest number from given three numbers in Java programming language. we…
Read More- On
- By
- 0 Comment
- Categories: Calculations
Java Program to calculate average of an Array
Java Program to calculate the average of an Array In this tutorial, we discuss a simple concept of Java Program to calculate the average of an Array In this topic, we can learn how to calculate the average of n number of elements (integer or floating point)using the array in Java programming language. Average calculated…
Read More- On
- By
- 0 Comment
- Categories: Calculations, multiply
Java program to multiply two numbers
Java program to multiply two numbers In this tutorial, we will discuss the Java program to multiply two numbers. We will learn how to multiply two integer numbers Multiply two integer numbers Program 1 public class Multiply_Two_num{ public static void main(String args[]){ int num1=34,num2=45,product;//variable declaration product=num1*num2;//multiplication of numbers System.out.println(“The product of given two numbers is:…
Read More- On
- By
- 0 Comment
- Categories: addition, Calculations
Java program to sum of two numbers
Java program to the sum of two numbers In this tutorial, we will discuss the Java program to the sum of two numbers In this topic, we will learn how to add two numbers in Java programming language Sum of two numbers public class Add_Two_Numbers{ public static void main(String args[]){ int num_1=23,num_2=32,sum; //declare variables sum=num_1+num_2;…
Read More- On
- By
- 0 Comment
- Categories: pyramid triangle, star pattern
Java code to Hollow Pyramid Pattern
Java code to Hollow Pyramid Pattern In this tutorial, we will discuss Java code to Hollow Pyramid Pattern in Java language In this topic, we will learn how to create te hollow pyramid star pattern in Java programming language Hollow Pyramid pattern Program 1 This program allows the user to enter the number of rows…
Read More- On
- By
- 0 Comment
- Categories: Floyd's triangle, star pattern
Java code to hollow triangle pattern
Java code to hollow triangle pattern In this tutorial, we will discuss Java code to hollow triangle pattern We will learn how to create hollow triangle pattern in Java language using nested for loop Program 1 Code to Hollow triangle pattern 1 Java program to display hollow mirrored right triangle star pattern import java.util.Scanner; public…
Read More- On
- By
- 0 Comment
- Categories: Floyd's triangle, star pattern
Java code to Floyd’s triangle star pattern
Java code to triangle star pattern In this tutorial, we will discuss Java code to Floyd’s triangle star pattern using nested for loop. We will learn how to create Floyd’s triangle pattern in Java programming language using for loop Pattern 1 Java Code for Floyd’s triangle program 1 Java program to display the right triangle…
Read MoreJava program to display multiplication table
Java program to display multiplication table In this tutorial, we will discuss Java program to display multiplication table using loops We will learn how to create a multiplication table using loops. we can create multiplication table using for loop, while loop and do – while loop in C language. Create multiplication table using for loop…
Read More- On
- By
- 0 Comment
- Categories: nested for, pyramid triangle
pyramid number pattern in Java using for loop
pyramid number pattern in Java using for loop In this tutorial, we will dicuss pyramid number pattern in Java using for loop Pyramid Pattern 1 Program import java.util.Scanner; public class Pyramid_pattern1{ public static void main(String args[]){ Scanner sc=new Scanner(System.in); //Scanner class in java System.out.print(“Enter the rows you want:”); int rows=sc.nextInt(); System.out.println(“”); for (int i=1;…
Read More- On
- By
- 0 Comment
- Categories: pyramid triangle, star pattern
Java program to display star Pyramid pattern
Java program to display star Pyramid pattern In this tutorial, we will discuss about Java program to display star Pyramid pattern. Here, we can see four type of pyramid pattern displays using nested for loop in Java using stars Code to star Pyramid pattern 1 Program import java.util.Scanner; public class Pyramid_pattern1{ public static void main(String…
Read More