An introduction to C Sharp and object oriented programming. Superficially covers a few aspects of C Sharp and builds your first C# program, the classic ‘Hello World’.
Get Letters Of The Alphabet
Get the alphabet by looping through the ASCII values 65 to 90, which correspond to uppercase A through Z.
Validate phone number using RegEx and Java
Java example of how to validate a phone number in various formats using regular expressions. Contextual Ads More Java Resources Advertisement
Validate DateTime Format
Test a C# date and time as a valid DateTime object format through error handling.
Validate Value As Numeric
Test passed values to see if they are numeric or not using the TryParse method on the Double data type.
Find Controls In MasterPages Recursively
A useful piece of code that enhances the search for the control with the specified name under the passed parent control.
Function to test for primality
A simple modulus based algorithm used in Java to find if the passed number is prime or not.
Validating credit card numbers
This JavaScript function checks a text field for a valid credit card number through several validation methods.
Greatest common divisor w/ the Euclidian algorithm
The Euclidian algorithm is being used in a Java function for finding the greatest common divisor. The simple function calls itself (recursion) until the greatest common divisor has been reached, at which point it is returned.
MD5 Encryption Using Java
Demonstrates how to encrypt a string using the MD5 algorithm in Java. Since MD5 is non-reversable, there is no code for decrypting the value.