Search:

Type: Posts; User: dendoc01

Search: Search took 1.05 seconds.

  1. Replies
    1
    Views
    152

    [SOLVED] trouble finding object

    public class PoliceOfficer
    {
    String officerName;
    double badgeNumber;
    ParkedCar carInfo;
    ParkingMeter meter;
    double timeParked;
    double timePurchased;
  2. Replies
    2
    Views
    249

    Re: issue with return values stuck at 0

    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
  3. Replies
    2
    Views
    249

    issue with return values stuck at 0

    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...
  4. Replies
    2
    Views
    213

    problem returning array

    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...
  5. Re: counter in loop not incramenting when its suppose to

    that was it thanks
  6. Re: counter in loop not incramenting when its suppose to

    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
  7. counter in loop not incramenting when its suppose to

    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....
  8. Replies
    11
    Views
    274

    Re: problem copying array elements

    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...
  9. Replies
    11
    Views
    274

    Re: problem copying array elements

    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...
  10. Replies
    11
    Views
    274

    Re: problem copying array elements

    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...
  11. Replies
    11
    Views
    274

    Re: problem copying array elements

    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.

    ...
  12. Replies
    11
    Views
    274

    Re: problem copying array elements

    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 ...
  13. Replies
    11
    Views
    274

    problem copying array elements

    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...
Results 1 to 13 of 13