.Java program to addition of two numbers In this tutorial, we will discuss the Java program to addition of two numbers In this post we are going to learn how to find sum of two numbers through different 5 ways Method 1 Program 1: Sum of two numbers -standard method public class AddTwoNumber{ public static…
Category: java
Java program to print an integer
Java program to print an integer value In this tutorial, we discuss the simple concept of Write a Java program to print an integer problem – How to write a program to print an integer in Java? In this article, we are going to learn How to write a program to print an integer in…
How to download and install Java on Windows
How to download and install Java on Windows In this tutorial, we explain how to download and install Java. Java is a class-based and object-oriented programming language which has better features than other languages. It is more secure, portable, platform-independent and high performance. We can get Java from the Oracle Java download page. There are…
Variable and Data type in Java language
Variable and Data type in Java In this article, we will discuss the concept of Variable and Data type in Java Datatype The data type and variables are an important concept in every programming language. A variable can be similar to a container, which holds the value of your program in Java. Every variable in…
Java language Hello world program
Java language Hello world program In this tutorial, we will discuss the Java language Hello world program Hello world is usually the first easy to understand program used to introduce programming language for beginners. Firstly, we will understand how to write hello world program and then how to compile and run the program with no…
How to set path in Java language
How to set path in Java language To Windows After you’ve installed the Java Development Kit(JDK) in Windows, you must set the path in Java Environment variable to point out the JDK installation directory. Default drive is Programming file in C Drive. If you save the java source file inside the JDK/bin folder, this path…
Access modifier public private protected in Java
Public,private and protected access modifier in Java The access modifier in java is used to decide the accessibility of scope of a field, method and constructor or class. If you would like change the accesibility of that, you can do that by appling access modifier to it. There are four type of Access modifiers in…
Operator in Java programming language
The operator in Java programming language In this tutorial, we will discuss the concept of Operator in Java programming language Java operators Many types of operators are available in java which are used to perform various operations. Different types of java operators are given below Arithmetic Operator Unary Operator Assignment Operator Shift Operator Relational Operator…
Java language input Scanner tutorial
Java language input Scanner tutorial In this tutorial, we will discuss the concept of Java language input Scanner tutorial Java input Scanner class The java.util.Scanner class is used to read input of primitive type of data, like int, double, float etc .. from the user in java. How to get input from user in Java…
Floyd’s triangle number pattern using while loop in Java
Floyd’s triangle number pattern using while loop in Java In this tutorial, we will discuss Floyd’s triangle number pattern using while loop in Java. Triangle number pattern using while loop in Java We can print a lot of patterns (Floyd’s triangle or pyramid triangle)using nested while loop in java. This example explains how to create…