Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)
Java Programs | 500+ Programs - Java Programming
Latest :

Java Programs

Java Program To Calculate Distance Between Two Points | 3 Ways

Java program to calculate the distance between two points. The code has been written in five different formats using standard values, taking inputs through scanner class, command line arguments, while loop and, do while loop, creating a separate class. If you nay doubts related to the information that we shared do leave a comment here at the end of the ...

Read More »

Java Program To Find Area of Parallelogram – Programs

Java program to calculate the area of a parallelogram. There may be so many ways to represent the code in order to calculate the area of a parallelogram. Here, we tried to write in just three to four lines of code. # Scroll down for online compiler and execution tool # If you were new to java programming and have you ...

Read More »

Java Program To Calculate Salary Of An Employee | 3 Ways

Java Program To Calculate Salary of An Employee – In this article, we will detail in on all the methods used to calculate the net salary of an employee in Java Code.  Suitable examples and sample programs have been included in order to make you understand simply. Employee program in Java. The methods used in this article are as follows: ...

Read More »

Java Program To Calculate Volume Of Prism | 3 Simple ways

Java program to calculate the volume of a prism. we have been written the java code in three to four different formats. All of the formats are meant to be same just for a learning purpose. If you have any doubt related to the subject that we are shared over here do let us know by commenting or contacting us. ...

Read More »

[GUI] Implement Simple Calculator Using JFrame/Swing In Java | Programs

Java program to implement calculator using JFrame/Swing With GUI – In this article, we will detail in on how to implement a calculator using Swing concept in Java programming along with detailed explanation of the source code. The method used in this article is as follow: Using JFrame As we all know, calculators are the mechanical or digital instruments which ...

Read More »

Java Code to Calculate Years Between Two Dates | Java Programs

Java program to find years between two dates – The following java program has been written in along with algorithmic explanation, if you have any doubts regarding that just do leave a comment here. Java Program Calculate Years Between Dates [crayon-6a05106a466dc178224889/] Output: [crayon-6a05106a466e7757541099/] Explanation: To calculate the exact number of years in between two dates, we will require to store ...

Read More »

Java Code Display Number to Corresponding Month Name | Java Programs

Write a java program to display month name according to the number, Java month getDisplayName. Here the Java program to display the month name based on the input numbers between 1 to 12 as year consists of 12 months To arrive at a solution for any given problem, there is a systematic way to solve so that, we can avoid ...

Read More »

Java Program To Calculate Area Of Circle | 5 Ways

Java program to calculate or to print area of a circle in a simple method. If you were new to java or at the beginning stage then, Check – 500+ simple Java programs for beginners. The following Java program to print the area of a circle has been written in five simple different ways, static method, using constructor, Interface, inheritance with sample outputs for ...

Read More »

Miles Per Gallon Java Program | 4 Ways

Java Program To Calculate Miles Per Gallon – In this article, we will detail in on all the possible methods used to calculate miles per gallon in Java. The following source code has been written in multiple ways for easy understand. Suitable examples and sample programs have been included in order to make you understand simply. The methods used in ...

Read More »

Java Code to Calculate Harmonic Value | Java Programs

Java program to calculate harmonic value – In this article, we will learn the multiple ways to calculate the harmonic value in Java Programming. Suitable examples and sample programs have been included in order to make you understand simply. The compiler has also been added so that you can execute the programs yourself. The methods used in this article are ...

Read More »