Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


       

Java Programming Code Examples

Java > Learning Code Examples

Working with static class members





Program Code Find all Factors of Number - C program to input a number from user and find all factors of the given number using for loop. Factor of any number is whole number which exactly divides the number into whole

C Find Volume & Surface Area of Cylinder - This C Program code calculates volume and surface area of cylinder. The formula used in this C Program 'Surface_area' = 2 * Pi * r * (r + h) & Volume = Pi * r * r * h where Pi = 22/7.

Program Reverse Order of Words in String - Logic to reverse the order of words in a given string. There are many Logic's to Reverse the order of words. Here is the simplest approach I am using to Reverse the order. Input a string

Cryptography by Transposition Technique - This "C++" Program implement transposition technique. In "Cryptography", a transposition cipher is a method of encryption by which the positions held by units of plaintext (which are

Sort Elements Using Quick Sort Algorithm - Two stacks to store two ends of the list in C. Entering elements in the array. Set top to stack. To print the sorted array. Enter the no of elements in the array. Enter the elements

C++ Program Find the Area of a Triangle - Enter size of each sides of 'triangle'. To find the area of triangle in which values of three sides are given we can use Heron's formula. To apply "Heron's formula" there should be

C++ Language Find Largest of 2 Numbers - To find the largest number of the 2 numbers in C++, enter 2 numbers and checking which one is larger to "Display the Largest" on the output screen as shown here in the program

Accept Two Integers and Check if They are - Take the two integers as input and store it in the variables x & y respectively. Using if, else statements check if x is equal to y. If they are equal, then print the output as "x and y are...