Hi, I really need help about my lab3 of how debug the largeTrucksNeeded method and get it to work.I'm using BlueJ to test and run my program and webcat to see what BlueJ could not solve. Below are snippets code of my BigJob classes
public class BigJob {
/** * Returns the number of large trucks needed for this job. * It's necessary to call both largeTrucksNeeded and smallTrucksNeeded to * determine to total job requirements. * Returns -1 if there are not enought small or large trucks for job. * * @return Number of large trucks needed */ public int largeTrucksNeeded() { int largeTrucksNeeded = (int) (Math.floor(concreteAmount) / LARGE_TRUCK_SIZE);
if (largeTrucksNeeded <= largetruckcount) {
return largeTrucksNeeded; } return -1; } /** * Returns the number of small trucks needed for this job. * It's necessary to call both largeTrucksNeeded and smallTrucksNeeded to * determine to total job requirements. * Returns -1 if there are not enought small or large trucks for job. * * @return Number of small trucks */ public int smallTrucksNeeded() { int smallTrucksNeeded = 0;