Tag: #simple java programs

Java Program to swap two number use 3rd variable

In this program, you’ll learn to Program to swap 2 number with 3rd variable in Java. After write the code, the final output is displayed on the screen. Example -Swapping two number. Output Java Program to Swap two number without use 3rd variable. Output

continue reading
No Comments

Java program to multiply two floating point number

In this program, you’ll learn to Program to multiply two floating point number in Java. After write the code, the final output is displayed on the screen. Example – Program to multiply two floating point number Output

continue reading
No Comments

Java Program to find the ASCII value of a character

In this program, you’ll learn to Program to find the ASCII value of a character in Java. After write the code, the final output is displayed on the screen. Example- Find the ASCII value of a character. Output

continue reading
No Comments

Java Program to calculate quotient & reminder

In this program, you’ll learn to Given Number is even or odd in Java. After write the code, the final output is displayed on the screen. Example- Calculate quotient & reminder Output

continue reading
5 Comments

Java Program to Check given year is leap year or not

In this program, you’ll learn to Check given year is leap year or not in Java. After write the code, the final output is displayed on the screen. Example -1 Check given year is leap year or not Example 2 Output Read more post

continue reading
No Comments

Java Program to Check Given Number is even or odd

In this program, you’ll learn to Given Number is even or odd in Java. After write the code, the final output is displayed on the screen. Example – Given Number is even or odd Output Read more post

continue reading
No Comments

Java Program to add two number

In this program, you’ll learn to store and add two integer numbers in Java. After addition, the final sum is displayed on the screen. Example – Program to add two number Output n this program, two integers 5 and 9 are stored in integer variables first and second respectively. Then, first and second are added using the + operator, and its result is stored in another variable sum. Finally, sum is…

continue reading
No Comments