A PHP array of US state abbreviations and their corresponding territory code, including the leading zero.
How to bat and jar
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.
UK’s Elite Developer Roles: Stack Overflow Sheds Light on Where the Money Is
The digital age has ushered in an era where tech-savviness equals financial success, and Stack Overflow’s latest report is the key to unlocking this potential. It meticulously outlines the top 10 best-paid developer roles in the UK, shedding light on the lucrative positions that tech enthusiasts dream of. This revelation is pivotal, serving as a […]
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.