# Java Programs

## Java Program To Convert Decimal To Binary | Vice Versa

Java program to convert decimal to binary. Here is the following code that you are searching for it. The following program has been written in three different ways using arrays, using the static method, using recursion, and vice versa conversion from Binary to decimal. What is binary and how it represents? A binary number is a number expressed in the ...

Read More »

## Java Program Convert Decimal To Hexadecimal | Vice Versa

Java Program to convert Decimal to Hexadecimal vice versa Hexadecimal to Decimal. Here we have written the code in three different ways using arrays, static method, recursion, vice versa with sample output and an example program. Before getting into the programming a couple of lines just to let you know the basics. What is Decimal? A decimal number system is a ...

Read More »

## Java Program Sum Of N Numbers | 4 Simple Ways

Java program to calculate the sum of N numbers using arrays, recursion, static method, using while loop. Here is the complete Java program with sample outputs. You can learn more tutorials here and Java interview questions for beginners. With the following program, you can even print the sum of two numbers or three numbers up to N numbers. How to ...

Read More »

## Java Program To Convert Decimal To Octal | Vice Versa

Java program to convert decimal to octal vice versa octal to decimal using standard values, recursion, array, and vice versa. Here are the basic steps just to let you know the conversion from decimal to octal in math. If you have a clear idea about the conversion then skip the below tutorial and check out the programming – Here is ...

Read More »

## Java Program to Find Hamming Distance Two Strings | Java Programs

Java program to calculate hamming distance between two strings & two Integers. The following program has been written in multiple ways along with sample output. If you looking out for any clarficiations regarding hamming distance, leave a comment here. For solving any problem, we first need to understand the problem statement properly and then, look for any constraints if mentioned. ...

Read More »

## Java Program To Calculate Modulus | Mod Java

Java Program To Calculate Modulus – In this article, we will explain the multitude of methods to calculate the modulus of a number 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 ...

Read More »

## Java : Flip Boolean Value By String | Java Programs

Java program to flip the boolean, the assigngment to find boolean is pretty simple, here we validate boolean value in Java in multiple ways to make it easy for you. This code is for flipping a boolean word represented by a string to its opposite or reverse value in Java language. The problem here is to flip a boolean word ...

Read More »

## Java : Hurdle Race & Jump Solution Hackerrank | Java Programs

Hurdle race & hurdle jump java program Hackerrank solution, Create a function that takes an array of hurdle heights and a jumper’s jump height, and determine whether or not the hurdler can clear all the hurdles. A hurdler can clear a hurdle if their jump height is greater than or equal to the hurdle height. Examples: hurdleJump([1, 2, 3, 4, ...

Read More »

## Java : Print Hello Gretting Before Name | Java Programs

Hello Java program – now you can showoutput as Hello, before any of your name. The following code is written in different ways, check out. This code is used to print out or display a greeting by taking input from a user using Java language. The problem here is to print out a greeting addressing someone (example : Hello Gerald) ...

Read More »

## Java Program to Calculate Restaurant Bill | Java Programs

Java code to calcuate the resturant bill, the following program is pretty simple one along with sample outputs. We have choosen the famous south indian food to create the following program. We all go to restaurants frequently and eat. Today, let us write a code to calculate the restaurant bill. With multiple items in a restaurant (in our case 10), ...

Read More »