The Works of Joe Schuman
Web Development

Java Examples


All examples shown below use JGrasp to create and run the code. Because there is no user interface coding designed in these applets they do not properly run as an applet here. So instead I provided the screen shots and code snippets of each example.


Example 1: Rounds decimal number to specified number of decimal places:

Java decimal rounding

Example 2: Check two randomly-generated numbers and if the first number is higher than the second, switch positions:

Java swamp numbers application

Example 3: Checks to see if a string is a palindrome:

Java Palindrome checker

Example 4: Checks a string for a palindrome, numbers, and creates lowercase and uppercase forms:


Example 5: Encrypts and Decrypts a string:

Java encryption before Java encryption after