 # Java Programming Code Examples

## Java > Learning Code Examples

### Continue Statements

Check Prime, Armstrong, Perfect Number - C First give a meaningful name to our prime checking function say isPrime() function will check a number for prime. Since our function checks a number for prime condition. Hence

Code Read & Print Details of 50 Students - The annual examination is conducted for 50 students for three subjects. Write a program to read the data and determine the following: Total marks obtained by each student. The...

Counts Leading Zeros in a Binary Number - Find total leading zeros of a given number (in binary representation) using bitwise operator in C programming. Write a C program code to input any number from user and find total

C++ Implement Shortest Path Algorithm - For a general weighted graph, we calculate single source shortest distances in "O(VE)" time using 'Bellman-Ford Algorithm'. For a graph with no negative weights, we can do

Program Prints Natural Numbers in Range - Using above logic you can easily find a way to print natural numbers in range. If not here is a hint. Input start limit from user and store it in some variable say start. Input end limit from

Program to Converts Celsius to Fahrenheit - Fahrenheit & Celsius are two unit for measure temperature. Formula to convert "Celsius" to Fahrenheit using this formula you can change temperature fahrenheit to celsius. Use temp

C Count Trailing Zeros in a Binary Number - C language input any number from user and count number of trailing zeros in the given number using bitwise operator. How to find total number of trailing zeros in any given...

Code Finds the Median of 2 Sorted Arrays - Algorithm finds the median of 2 sorted arrays using binary search approach. Takes the input of 'n' Data Elements of both the arrays. Using decrease, conquer method find the combined