Latest :

Java Programs – 500+ Simple & Basic Programs With Outputs

Java programs: Basic Java programs with examples & outputs. Here we covered over the list of 500+ Java simple programs for beginners to advance, practice & understood how java programming works. You can take a pdf of each program along with source codes & outputs. In case if you are looking out for C Programs, you can check out that ...

Read More »

Java Program To Check Vowel Or Consonant | 5 Ways

Java program to identify whether the given character is a vowel or not. With the help of the below program, you will get to know how to write and print whether the given number is a vowel. We have written the program in three different ways, using if else statement, using switch case, user-defined method – learn more about switch ...

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 »

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 »

Find Missing Third Angle in Triangle : Java Program

Java Program to enter two angles of a triangle and find the third angle in Java, to find the missing third angle, we first need the other two known angles of the triangle. Our expected output is whether the angle is an acute angle, an obtuse angle or a right angle. To begin the solution, we first require the two ...

Read More »

Java Program : Convert Lowercase Character to Uppercase in Java

Java Program to Convert lowercase character to uppercase character, the following program has written in different ways to convert small alphabets to capital alphabets. Sample output is also added after the Java program, Java String toLowercase() and toUpperCase(). Our problem statement here is, to convert all the lowercase character of the given input into uppercase. To do this, we require ...

Read More »

Java Program for Matchstick Houses | Java Programs

Java program for matchstick houses, This challenge will help you interpret mathematical relationships both algebraically and geometrically. Create a function that takes a number (step) as an argument and returns the amount of matchsticks in that step. See step 1, 2 and 3 in the image above. Examples: matchHouses(1) ➞ 6 matchHouses(4) ➞ 21 matchHouses(87) ➞ 436 To find the ...

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 : Return the Last Element in An Array & N Elements | Java Programs

 Java program to return the last element in an array – Here we written the program in four different ways to find the last element of array in Java along with outputs as well.Get last Print Last Element – Static Method Here, our problem statement is to find the last element in the given array. For this, our required inputs ...

Read More »

Java Program : Calculate Batting Average Example | Programs

Java Program to calculate the batting average. The following program is written in five different ways by using standard values, user-defined method, scanner class, through creating a separate class. Do check it out. Methods we used in this Cricket Batting Program: Using standard Method Using Scanner Class Using Command Line Arguments User Define Method Separate Class By Using Standard Values There ...

Read More »