Geekpedia Programming Tutorials









Code Java Code

1 2
(6 code snippets in 2 pages)
Latest Code: RSS Feed RSS Feed     KlipFolio Klip Klip     Add to Google    Add to My Yahoo!    Subscribe in NewsGator Online    Add To Windows Live    Subscribe with Bloglines   
Code

-----
No votes

Apr 19th 2008
by Andrew Pociu

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.

Code

*----
1 from 1 votes

Mar 16th 2008
by Andrew Pociu

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.

Code

-----
No votes

Mar 16th 2008
by Andrew Pociu

Function to test for primality

A simple modulus based algorithm used in Java to find if the passed number is prime or not.

Code

*****
5 from 1 votes

Mar 7th 2008
by Andrew Pociu

Get the Last Day of the Month

Retrieve the last day of the month, by specifying the month and year. It uses the Java Calendar object from the java.util class.

Code

****-
4 from 3 votes

Oct 11th 2007
by Andrew Pociu

Validate phone number using RegEx and Java

Java example of how to validate a phone number in various formats using regular expressions.

1 2
(6 code snippets in 2 pages)
Filter Results
Show:


Latest IT Jobs


Other Resources
Latest Tech Bargains

Advertisement

Free Magazine Subscriptions

Today's Pictures

Today's Video

Other Resources

Latest Downloads

Latest Icons