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

Pie Eater





C++ Decrement -- Operator Overloadings - Increment ++ and decrements -- operator are overloaded in best possible way, increase the value of a data member by 1 if "++" operator operates on an object and 'decrease' value of

C Programming Nested If...Else Statement - In programming if...else statement executes two different codes depending upon whether the test expression is true or false. Sometime a choice has to be made from more than two

C Code Copy One String to Another String - C program code to copy one string to another without using inbuilt library function 'strcpy()' Input string and 'store it' to some variable say text1. Declare another variable to 'store copy'

C++ Program Check if it is a Sparse Matrix - This is a C++ Program code to check 'sparsity' of a matrix. If the number of zeros in a matrix exceeds (n*m)/2, n and m is the dimension of the matrix, matrix is sparse matrix. Enter the

Replace last Occurrence of a Character in a - How to replace last occurrence of a character with another character in a given string using functions in 'C Language'. Input a string from user, store it in some variable say 'str'. Input a

Converts Octal Number to Binary Number - In this c program code we have created a user defined function octalToBinary(). Function converts the octal number (entered by user) to decimal number first and then converts...

Find Factorial of a Number with Recursion - C program to find factorial of a number using recursion. The factorial of a 'positive number' n is given by: factorial of n (n!) = 1*2*3*4....n The factorial of a 'negative number' does not

Perimeter of a Circle Rectangle & Triangle - This C Program calculates the perimeter of a circle, rectangle and triangle. This program is used to find the perimeter of circle, rectangle and triangle. Perimeter of rectangle: 2 *(x+y)