Java programming examples with source code

This website will help you to learn Java programming examples with source code  for beginners to learn  basic java programming, the best way to learn is to train not only for Java program, but also for 100 or more java program. Be patient and begin to learn java. Basic java program with source code for freshers to learn java for those looking for a career in a reputable business. These basic java program can teach you about operators, syntax, and program structure.

Java basic programs

Basic hello world program in java 

Write a java program to print a number from the user

Java program to add two numbers taking input from user

Leap year or not program in java using if-else

Swapping of two numbers in java with temporary variable

Odd or even program in java using a mod operator

Vowel or consonant in java using if else 

Java program to find largest of three numbers using nested if

Write a program to print first ten natural numbers in java

Write a program to find factorial of a number using for loop in java

Palindrome string program in java using scanner

Program to check whether the number is prime or not in java

Java program to find Armstrong number using while loop 

Java program for a calculator using switch case

Java program to calculate percentage and average

Write a java program to print multiplication table using for loop 

Print the sum of the natural numbers program in java using for loop

Write a java program to convert temperature from Fahrenheit to celsius degree

Write a java program to convert temperature from Celsius to Fahrenheit

Java program to find HCF and LCM of two numbers

Java program to print the area of circumference of a circle

Write a java program to print the length and perimeter of a rectangle

Java program to print ASCII value of all alphabets

Java program to print decimal number to binary 

Java program to print decimal to octal conversion

Java program to print hexadecimal to decimal number conversion

Octal to hexadecimal conversion program in java

Java program to conversion hexadecimal to decimal number

Java program to print the upper case to lower case alphabets

Java program to print two multiply binary numbers with solution 

Java program to find the sum of digits of a number using recursion function

Java program to swap two numbers using bitwise xor operator

Java program to find product of two numbers using recursive function

Write a java program to find the reverse of a given number using recursion

Write a java program to accept two numbers and check which is same or not

Java program to increment by 1 all the digits of a given integer

Java program to print the number positions in list of digits

Write a java program to convert numbers into years, weeks and days

Write a java program to print the ip address

Java program to check whether entered character is uppercase or lowercase

Write a program illustrate use of various boolean operators in java

Java program to print the number entered by the user using for loop

Write a java program to check whether the given number is divisible by 5

Write a java program to take a number and return list of its digits

Java program to print the two digits of the year

Write a java program for atm machine

Java program to find the second biggest and smallest number in the array

Write a java program to sort the names in ascending order

Write a java program to increment every element of the array by one

Java program for banking ticket system using if-else statement

Java program to find which department has highest placement program

Write a java program to find my lucky number or not

Credit score program in java for shop

Java program to count the number of pencils for student

Java program to find numerology number

Java program to calculate uber cost and discount rate

Java program to calculate land price with land area

Java program to calculation the air conditioner capacity for invertor and non invertor

Java program to kindergarten school kids

Java program to calculate cubic capacity cc in bikes

Java program to find the odd or even in the box challenge

Java program to create a login page with username and password

Java code for car parking management system

Java program to find the middle element of the string

Java program to find the cubes of an n natural numbers

Java program to print weekdays using a switch statement

Java program to solve quadratic equation using if-else

Java program calculation to fill the bucket with the water mug

Method Overloading in Java to Find Arithmetic Sum of 2 or 3 or 4 Variables by Passing Argument

Write a java program to print the nested methods to perform mathematical operations

Write a program to concatenate two string in java

How to print semicolon in java program without using it

Write a java program to find the largest number in an array

Write a program to find second largest number in an array in java

Write a java program to find the odd or even number in the array

Write a java program to add element in user-specified position using array

Write a java program to delete an element from an array list at the specified index

Write a java program to arrange strings in alphabetical order

Write a java program to split an array in a specific position

Write a array program to calculate average and sum in java

Write a program to calculate electricity bill in java

Java pattern programs

Java sorting and Linked list programs