Search:

Type: Posts; User: Dawidos21

Search: Search took 0.20 seconds.

  1. Thread: Java MVC

    by Dawidos21
    Replies
    1
    Views
    831

    Java MVC

    Hi, need help, the site is not finding city and date information. Why



    @Controller
    @RequestMapping("/secondSubPage")
    public class secondSubPageController {
    private static List<Travel>...
  2. 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);
  3. 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
  4. 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...
  5. Replies
    23
    Views
    1,642

    Re: I have problem a colections

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

    Re: I have problem a colections

    But I have it made
  7. 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

    ---...
  8. 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...
  9. 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...
  10. 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...
  11. Replies
    23
    Views
    1,642

    Re: I have problem a colections

    Yes, it is but I don't know how to go about it
  12. 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,...
  13. 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
  14. Thread: I need help

    by Dawidos21
    Replies
    6
    Views
    782

    Re: I need help

    package Pyramid;

    import java.util.Scanner;

    public class PyramidTest {

    public static void main(String[] args){
    System.out.println("State how many levels the pyramid is to...
  15. Thread: I need help

    by Dawidos21
    Replies
    6
    Views
    782

    Re: I need help

    package Pyramid;

    import java.util.Scanner;

    public class PyramidTest {

    public static void main(String[] args){
    System.out.println("State how many levels the pyramid is to consist...
  16. Thread: I need help

    by Dawidos21
    Replies
    6
    Views
    782

    I need help

    Hello, I need to create a pyramid of numbers. In advance I got "public static void printNumPyramid (int numPyramidLvl)" Because it is not main, it gets lost completely and if I do a loop, I can't...
Results 1 to 16 of 16