Search:

Type: Posts; User: Dawidos21

Search: Search took 0.19 seconds.

  1. Replies
    23
    Views
    1,642

    Re: I have problem a colections

    Yes I know that getDesiredValue is as example



    package myPackage.exam.colections;

    import java.util.*;

    public class Task2 {
    static Car BMW = new Car(true, 2005, 2, 1, 22000.0D);
  2. Replies
    23
    Views
    1,642

    Re: I have problem a colections

    Now in the loop it gives an error and intelijj wants to change getDesiredvalue from double to boolean
  3. Replies
    23
    Views
    1,642

    Re: I have problem a colections

    I keep trying but I don't know how to add value from cars list to if.

    Because I don't know if you understand what he's trying to do.

    Scanner I created in order to create a variable, which then...
  4. Replies
    23
    Views
    1,642

    Re: I have problem a colections

    Then show me what you would change if you did
  5. Replies
    23
    Views
    1,642

    Re: I have problem a colections

    But I have it made
  6. Replies
    23
    Views
    1,642

    Re: I have problem a colections

    The purpose of the loop is to output the data information about the cars of the list.

    Unless I'm misunderstanding it and doing it wrong as you would. Because I don't understand your answer

    ---...
  7. Replies
    23
    Views
    1,642

    Re: I have problem a colections

    The purpose of the scanner is to enter the MaxValue of the cars and then in the console pop up cars up to a given amount, if I enter the amount of 2000, only cars up to 2k will be displayed, the same...
  8. Replies
    23
    Views
    1,642

    Re: I have problem a colections

    Now I have a problem with displaying cars according to price and according to equipment level. I made scanners, I give variables, but in class printCardToValueAndLevelOfEquipment I don't know how in...
  9. Replies
    23
    Views
    1,642

    Re: I have problem a colections

    When I want the console to list my cars, this pops up, how do I fix it?


    Console:
    myPackage.exam.colections.Car@3ac3fd8b
    myPackage.exam.colections.Car@5594a1b5...
  10. Replies
    23
    Views
    1,642

    Re: I have problem a colections

    Yes, it is but I don't know how to go about it
  11. Replies
    23
    Views
    1,642

    Re: I have problem a colections

    package myPackage.exam.colections;

    import java.util.*;

    public class Task2 {
    static Car BMW = new Car(true, 2005, 2, 1, 22000.0D);
    static Car AUDI = new Car(false, 2020, 1, 2,...
  12. Replies
    23
    Views
    1,642

    I have problem a colections

    Could someone guide me how to make printsortedCars
    line 32

    Code: https://pastebin.com/QqbHtMGj
Results 1 to 12 of 12