Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / 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 / 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 / WhileLoopSentinalValue.java
Created November 30, 2012 21:38
Uses a "sentinal value" to exit the loop. The program poorly creates an average score.
/***********************************************
* WhileLoopSentinalValue.java
* Aaron P. Clark
*
* Based on the pseudocode while loop on p.40 in Ch 2.
* Takes scores and computes average.
***********************************************/
import java.util.Scanner;
@0x000000AC
0x000000AC / whileLoop.java
Created November 30, 2012 21:35
Created this to figure out accepting user input in a while loop
/***********************************************
* whileLoop.java
* Aaron P. Clark
*
* I created this for Park programming calss to learn
* how to accept command-line input in a loop
***********************************************/
import java.util.Scanner;
public class whileLoop
@0x000000AC
0x000000AC / printLoop.java
Created November 30, 2012 21:19
I wanted to figure out how to print something a given number of times with a for loop
/***********************************************
* printLoop.java
* Aaron P. Clark
*
* Created from pseudocode in Ch. 2 of Park Univ.
* book. I wanted to figure out how to print something
* a given number of times.
***********************************************/
// Created from pseudocode in Ch. 2 of Park University book.
@0x000000AC
0x000000AC / HappyBirthday.java
Created November 30, 2012 21:12
Prints "happy birthday" 100x based on a counter in a while loop
/***********************************************
* HappyBirthday.java
* Aaron P. Clark
*
* Based on the pseudocode while loop on p.37 in Ch 2.
* prints "Happy birthday!" 100x
***********************************************/
public class HappyBirthday
{
@0x000000AC
0x000000AC / CirclePrompt.java
Created November 30, 2012 20:50
Ch. 2 of Book, explores using java.util.Scanner and checks for a favorite shape.
/***********************************************
* CirclePrompt.java
* Aaron P. Clark
*
* Created to understand java.util.Scanner and Ch 2.
* shows the area of a circle if you say it's your
* favorite shape when prompted. See P.32 in our
* text for the pseudocode
***********************************************/