Java Programming

Down below you will see all the Java snippets we currently have available in the lexicon. This list will continue to grow as snippets are created. While most of the snippets should work across all JVM versions, most have been created using JDK 6 and above for the desktop. Please be sure to read each snippets platform and notes before trying to implement them… to save yourself some time.

Snippet Listing

Binary Search in JavaCheck if String is a Palindrome
Count Vowels With LoopCount Vowels with Regular Expression
Create Image of Static (like on TV)Is Number Prime in Java
Leap Year CheckMake Change
Number of Days in Given MonthQuicksort (In-Place)
Read Text File Using BufferedReaderStraight Selection Sort in Java
Text File SortWrite Text to Specified File