First Assignment

First.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package first;   /** * @author mark */ import java.util.Scanner; public class First {   /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here int i; System.out.println("These are even numbers from […]

UseAuto Code

Auto.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package useauto;   /** * @author mark */ public abstract class Auto { private final String Make; protected double Price;   public Auto(String make) { Make = make; }   public String getMake() { return Make; } public Double getPrice() { return Price; […]

Billing Code

Main.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package billing;   /** * * @author mark */ public class Main {   /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Billing bill1 = new Billing(3.00); Billing bill2 = […]

BirdSighting Code

BirdSighting.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package birdsighting;   /** * * @author mark */ public class BirdSighting {   /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here   Bird robin = new Bird(); Bird duck […]

BloodData Code

TestPatient.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package blooddata;   /** * * @author mark */ public class TestPatient {   /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Patient fred = new Patient(); Patient wilma = […]

CollegeList Code

CollegeList.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package collegelist;   /** * * @author mark */ public class CollegeList {   /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here Person[] mark = new Person[4]; mark[0] = new […]

CreateBuildings Code

CreateBuildings.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */   package createbuildings;   /** * @author mark */ public class CreateBuildings { /** * @param args the command line arguments */ public static void main(String[] args) { Building[] buildings = new Building[6]; buildings[0] = new House(100, 1, 2, 1.5); buildings[1] = new […]

CreateChair Code

CreateChair.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */   package createchair;s   /** * @author mark */ public class CreateChair { /** * @param args the command line arguments */ public static void main(String[] args) {   } }/* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */ package createchair;s […]

CreateCircle Code

CreateCircle.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */   package createcircle;   /** * @author mark */ public class CreateCircle { /** * @param args the command line arguments */ public static void main(String[] args) { Circle[] c = new Circle[2]; c[0] = new Circle("Red", 2); c[1] = new Cylinder("Red", 2, […]

CreateDormFile Code

CreateDormFile.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */   package createdormfile;   import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.nio.file.*; import java.io.*; import static java.nio.file.StandardOpenOption.*;   /** * @author mark */ public class CreateDormFile extends JFrame implements ActionListener { //Declarations //Strings private final String TITLE = "Dorm Information"; private final String […]