public class PoliceOfficer
{
String officerName;
double badgeNumber;
ParkedCar carInfo;
ParkingMeter meter;
double timeParked;
double timePurchased;
Type: Posts; User: dendoc01
public class PoliceOfficer
{
String officerName;
double badgeNumber;
ParkedCar carInfo;
ParkingMeter meter;
double timeParked;
double timePurchased;
It was the getPassFail method but I figured it out I forgot to call the Exam1.setInfo() method in the main method so the variables I was trying to return were never set. Thanks
I'm writing this program that is a drivers license test . the main method allows the user to input 20 answers and it creates an array of those answers then it is suppose to make that a new instance...
I have a drivers license test program where in the main method the user inputs the answers then in a separate class there needs to be a method to see if the user passed a method to tell how many were...
that was it thanks
it does compile the only issue I'm having is that my correctCount doesn't count up it stays at 0 so the return is always false
I have to tell if someone passed a drivers test or not. for some reason in the class the
correctCount isn't adding when it should so I am always having a return of false and I cant figure out why....
because it is set to 0 inside the SaveDistinctNumber method doesn't increment until it is inside the for loop in the SaveDistinctNumber method that's why i was talking about returning count to the...
that's what count does so in my method to save the numbers count is set to 0 . the user enters a number and that is saved into array 1 wether it is a number the user already entered or not then i...
I have count declared at 0 at the top of my main method I must have missed that when I was copying it. All Im trying to be able to do is print out array2 up until the element where nothing else was...
im trying to create a for loop in the main method after all the elements have been saved that looks like this but im not getting any output because in the main method count is still equal to 0.
...
sorry didn't know how to do that but so far I've figured out that the issue was the breaks in the if statements ending the for loops cause my count to not count and that I had ...
I have to make an array of 10 numbers then copy that array into a new array without the duplicates. I got it to the point where it will weed out dups but for some reason after I determine that a...