From bb31ffcfd9350475229fa41166995966348fb1f0 Mon Sep 17 00:00:00 2001 From: DjBushido Date: Tue, 21 Jan 2014 20:51:25 -0500 Subject: [PATCH] Move the PartTwo.java file to its own package, add initial Vehicle.java --- .../uncc/itcs4180/{ => PartTwo}/PartTwo.java | 6 +- .../edu/uncc/itcs4180/PartTwo/Vehicle.java | 56 +++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) rename HW1/src/edu/uncc/itcs4180/{ => PartTwo}/PartTwo.java (57%) create mode 100644 HW1/src/edu/uncc/itcs4180/PartTwo/Vehicle.java diff --git a/HW1/src/edu/uncc/itcs4180/PartTwo.java b/HW1/src/edu/uncc/itcs4180/PartTwo/PartTwo.java similarity index 57% rename from HW1/src/edu/uncc/itcs4180/PartTwo.java rename to HW1/src/edu/uncc/itcs4180/PartTwo/PartTwo.java index 482fde7..7978c0d 100644 --- a/HW1/src/edu/uncc/itcs4180/PartTwo.java +++ b/HW1/src/edu/uncc/itcs4180/PartTwo/PartTwo.java @@ -1,4 +1,4 @@ -package edu.uncc.itcs4180; +package edu.uncc.itcs4180.PartTwo; /* Assignment: Homework 1 * File name: PartOne.java @@ -8,5 +8,9 @@ package edu.uncc.itcs4180; */ public class PartTwo { + + public static void main(String[] args) { + + } } diff --git a/HW1/src/edu/uncc/itcs4180/PartTwo/Vehicle.java b/HW1/src/edu/uncc/itcs4180/PartTwo/Vehicle.java new file mode 100644 index 0000000..a2c19a3 --- /dev/null +++ b/HW1/src/edu/uncc/itcs4180/PartTwo/Vehicle.java @@ -0,0 +1,56 @@ +package edu.uncc.itcs4180.PartTwo; + +/* Assignment: Homework 1 + * File name: Vehicle.java + * Group: + * Bradlee Speice + * Brandon Rodenmayer + */ + +public class Vehicle { + + private int modelYear; + private String manufacturerName; + private String modelName; + private int horsePower; + private int noCylinders; + private int noGears; + + public int getModelYear() { + return modelYear; + } + public void setModelYear(int modelYear) { + this.modelYear = modelYear; + } + public String getManufacturerName() { + return manufacturerName; + } + public void setManufacturerName(String manufacturerName) { + this.manufacturerName = manufacturerName; + } + public String getModelName() { + return modelName; + } + public void setModelName(String modelName) { + this.modelName = modelName; + } + public int getHorsePower() { + return horsePower; + } + public void setHorsePower(int horsePower) { + this.horsePower = horsePower; + } + public int getNoCylinders() { + return noCylinders; + } + public void setNoCylinders(int noCylinders) { + this.noCylinders = noCylinders; + } + public int getNoGears() { + return noGears; + } + public void setNoGears(int noGears) { + this.noGears = noGears; + } + +}