Turning your program into an executable double-click program without the DOS command line.
Java as a useful Platform
A brief introduction of Java for getting ready to start programming with Java.
Programming a mouse tracker in Java
This tutorial will introduce you to mouse events in Java. You will learn how to program a cursor tracker, which triggers on events such as mouse button pressed, released, clicked, dragged, moved, etc.
Efficiently get a Random Array Element
An efficient way to show a random value from an array, using PHP’s array_rand() functions.
Sort an Array of Strings in Reverse Order
Learn how to sort an array efficiently using the sort() method and a custom Comparator in Java.
Standardize string to a strict format
Some file systems don’t accept spaces and make no difference between lowercase and uppercase characters. Also when doing mod_rewrite and you would like to standardize an URL, it’s a good idea (although not always necessary) to remove white spaces and other special characters. This PHP function standardizes a string using a series of function calls and regular expressions.
Extract the file extension using PHP
Extract the file extension of the specified file name / file path using the pathinfo() function.
Find Twin Primes
Find the first 1000 twin prime numbers in Java using an isPrime function for the primality check and a value comparison between the prime numbers.
FTP Connection Using PHP
This sample code shows you how to connect to a remote FTP server using PHP’s built-in functions, retrieve a text file and save it on the current server.
Convert RGB Color Value To Hexadecimal
A simple way to convert RGB colors to their hexadecimal values by using the dechex() function.