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:
Example 2: Check two randomly-generated numbers and if the first number is higher than the second, switch positions:
Example 3: Checks to see if a string is a palindrome:
Example 4: Checks a string for a palindrome, numbers, and creates lowercase and uppercase forms:
Example 5: Encrypts and Decrypts a string: