rendered paste bodyclass Job {
String jobno, costperhr, numhrs, date, costofmats;
// job number method
public void setJobno(String newJobno) {
jobno = newJobno;
}
public String getJobno() {
return jobno;
}
// cost per hour method
public void setCostperhr(String newCostperhr) {
costperhr = newCostperhr;
}
public String getCostperhr() {
return costperhr;
}
// num of hours method
public void setNumhrs(String newNumhrs) {
numhrs = newNumhrs;
}
public String getNumhrs() {
return numhrs;
}
// date method
public void setDate(String newDate) {
date = newDate;
}
public String getDate() {
return date;
}
// cost of material method
public void setCostofmats(String newCostofmats) {
costofmats = newCostofmats;
}
public String getCostofmats() {
return costofmats;
}
}
class MainClass3 {
public static void main(String args []) {
Job theJob = new Job();
theJob.setJobno("10");
theJob.setCostperhr("6.00");
theJob.setNumhrs("43");
theJob.setDate("10/12/08");
theJob.setCostofmats("14545");
System.out.println(theJob.getJobno());
System.out.println(theJob.getCostperhr());
System.out.println(theJob.getNumhrs());
System.out.println(theJob.getDate());
System.out.println(theJob.getCostofmats());
}
}