Skip to content

Instantly share code, notes, and snippets.

@0x000000AC
0x000000AC / TemperatureConverter.java
Created November 30, 2012 22:04
Converts F to C. I created it to remind myself about named constants and the "final" modifier
/***********************************************
* TemperatureConverter.java
* Aaron P. Clark
*
* This program converts a Fahrenheit temp to Celcius Temp
* I created it to remind myself about named constants and
* the final modifier.
***********************************************/
public class TemperatureConverter
@0x000000AC
0x000000AC / EqualsIgnoresCaseMethod.java
Created November 30, 2012 22:27
Just illustrates .equalsIgnoreCase with some string contatenations
/***********************************************
* EqualsIgnoresCaseMethod.java
* Aaron P. Clark
*
* This program compares strings and illustrates the use of the equalsIgnoresCase method
***********************************************/
public class EqualsIgnoresCaseMethod
{
public static void main(String[] args)
@0x000000AC
0x000000AC / IncrementAndDecrement.java
Created November 30, 2012 22:30
Shows pre and post incrementation and why pre beats post.
/**********************************************
*IncrementAndDecrement
*Kalilikane Kimo
*
*This program demonstrates the use of the
*increment and decrement operators. It also
*demonstrates the use of a pre and post
*fix operators.
**********************************************/
@0x000000AC
0x000000AC / JOptionInstallationDialog.java
Created November 30, 2012 22:31
This program prints a JOptionPane window with a message
/***********************************************
* JOptionInstallationDialog.java
* Aaron P. Clark
*
* This program prints a JOptionPane window with a message
***********************************************/
import javax.swing.JOptionPane;
public class JOptionInstallationDialog
@0x000000AC
0x000000AC / JOptionPurchaseOrder.java
Created November 30, 2012 22:32
This program shows a "purchase order" using JOptionPane
/***********************************************
* JOptionPurchaseOrder.java
* Aaron P. Clark
*
* This program calculates and prints a purchase order amount
***********************************************/
import javax.swing.JOptionPane;
public class JOptionPurchaseOrder
@0x000000AC
0x000000AC / LengthMethod.java
Created November 30, 2012 22:35
This program show swhat happens when you call the length method with strings of different lengths
/***********************************************
* LengthMethod.java
* Aaron P. Clark
*
* This program shows what happens when you call the length method with strings of different lenths.
***********************************************/
public class LengthMethod
{
public static void main(String[] args)
@0x000000AC
0x000000AC / ClarkAaronWeek3.java
Created December 2, 2012 21:54
From CS151, accepts input and checks certain conditions
/******************************************************************
* ClarkAaronWeek3.java
* Aaron P. Clark
*
* This program illustrates concepts learned from
* CS151 - Introduction to Programming. In particular
* the following from week 3:
* - Use the Scanner class to accept input from the user
* - Prompt the user for their first name, last name, and
* age each individually.
#!/usr/bin/env python
# This is a continuation of the my playing with python on the Raspberry
# This program will functionally be a calculator that takes two different numeric imputs and then
# prompts the user what they want to do with them, in a super-simple fashion. The user enters
# two numbers, which are saved as longs'. Then, since I imported regular expressions, you can check
# the input text to meet one of the if, elif conditionals below it. For user input validation, I've
# placed the first number and second numbers in a while loop that throws an exception for invalid input.
import re
/***********************************************************************
* Title: ACDissector.java
* Description:
* Stores the phone number as a colon separated string of numbers
* and as four separate pieces:
* - colonSeparated "1:919:882:5000"
* - countryCode - stored as a String could hold 001
* - areaCode, prefix, number - stored as int
*
* Constructor:
/***********************************************************************
* Title: AaronClarkProg1.java
* Description:
* This program is the driver for APDissector.java and was created to
* fill partial requirements for CS219 at Park University. The basic
* ideas is that this driver instantiates a new APDissector object with
* the input shown below.
*
* Expected output:
* 1:919:882:5000