Java Programming Code Examples
Java > Learning Code Examples
Multiple Inheritance
Codes Prints Strong Numbers from 1 to n -
Program print Strong numbers between 1 to n. Strong number is a special number whose sum of factorial of digits is equal to original number. For example: 145 is strong number.
Find Quotient & Remainder with Function -
In this program, we are doing the same thing that we have done in the above program, but here we're using functions in order to find the Quotient & Remainder. We have created two
C++ Enter Two Numbers and Swap Them -
To swap two numbers in C++, ask to the user to enter the two number, and store both the number in the variable say num1 and num2. Now to swap both the number, first, make a
Dynamic Programming Algorithms in C++ -
c contains the number of columns for each of the n matrices. c[ 0 ] is the number of rows in matrix 1. Minimum number of multiplications is left in m[1][n]. Actual ordering is computed
C Number is Prime or Not using Recursion -
The following 'C Language Program' to using recursion, finds whether the entered number is a prime number or not. A 'prime number' is integer that has no integral factor but itself &
Program Implement a Stack by Linked List -
This Program implement a stack using linked list. A Stack is a type of queue that in practice is implemented as area of memory that holds all local variables and parameters used by any
C Code Accept an Array & Swap Elements -
C Program accepts array and swap elements using pointers. C program to accept an array of 10 elements and swap 3rd element with 4th element using pointers and display the
Reverse a Number Check it is Palindrome -
Take the Number which you have to Reverse as the input. Obtain its quotient & remainder. Multiply the Separate variable with 10 & add the obtained remainder to it. Do step 2 again